ssloy / tinykaboom

A brief computer graphics / rendering course

Home Page:https://github.com/ssloy/tinykaboom/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Circle being drawn in 1st quadrant only.

Parmohit opened this issue · comments

for (size_t j = 0; j<height; j++) { // actual rendering loop

Hi @ssloy, first of all, thanks for these amazing courses. Loved them.
Just wanted to point out that usage of "size_t", which is actually an 'unsigned int', never lets the direction in -ve x or -ve y axis which in result shows circle in 1st quadrant only.
Solution: Use "int" for "for" loop variables 'i' and 'j'.
Thanks again.

image