Very neat. The use of COS and SIN is quite CPU expensive, however.
Search for Bresenham's Circle Algorithm and you can find code that will draw a circle using only integer variables with simple addition/subtraction!
Combine this with a circle's symmetry and algorithms to check for screen...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.