Jump to content
  • Advertisement
Sign in to follow this  

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.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!