Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle being drawn in 1st quadrant only. #4

Open
Parmohit opened this issue Dec 29, 2022 · 0 comments
Open

Circle being drawn in 1st quadrant only. #4

Parmohit opened this issue Dec 29, 2022 · 0 comments

Comments

@Parmohit
Copy link

Parmohit commented Dec 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant