VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: Circle Formula Corre (2 replies, 0 views) (2000-Aug-29) It would be a lot faster to use Bresenhams circle algorithm... Just do a search for it and you should find lots of info on it.
Or you could at least use sin and cos to calculate it, simply loop through all angles 0 to 360 and set a pixel at:
x = Sin(i) * 50 + 100
y = Cos(i) * 50 + 100
Where i is the angle in radians, 50 is the radius and 100,100 is the middle point.
/Corre
|