# pixel count of a circle

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

## 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 on other sites
You might want to look up the Bresenham Circle Algorithm.

##### Share on other sites
calculating the circumference should give you a good estimation

1. 1
Rutin
67
2. 2
3. 3
4. 4
5. 5

• 21
• 10
• 33
• 20
• 9
• ### Forum Statistics

• Total Topics
633420
• Total Posts
3011793
• ### Who's Online (See full list)

There are no registered users currently online

×