• Advertisement
Sign in to follow this  

pixel count of a circle

This topic is 4263 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Bit of an odd question, but is there a way to estimate the number of pixels that'll be needed to draw an outline of a circle with a given radius? for a = 1 to 360 step ? x = sin(a)*radius y = cos(a)*radius dot x,y next a 'Cause no sense in looping 360 times for a circle with a radius of 2, hardly anything is drawn. It's not really a speed concern I have, but larger circles may take more than 360 pixels to draw it completely without spacing between each dot. So what would be the smaller amount to increment by to complete the circle cleanly? (hope this makes sense)

Share this post


Link to post
Share on other sites
Advertisement
You might want to look up the Bresenham Circle Algorithm.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement