3 ms·
Feels like simply using the parametric form of the circle equation would be way easier For t in 0 to 2 pi in whatever small steps you want, draw_pixel(x=a+rcos
by seanhunter 2y ago
Feels like simply using the parametric form of the circle equation would be way easier
For t in 0 to 2 pi in whatever small steps you want, draw_pixel(x=a+rcos t, y=b+rsin t) where a and b are the x and y coordinates you want for the centre of the circle and r is the radius.
The derivation of this form is pretty simple if you know basic trig. https://publish.obsidian.md/uncarved/3+Resources/Public/Unit+Circle+Definitions+of+Trigonometric+Functions https://publish.obsidian.md/uncarved/3+Resources/Public/Unit...