unfilled circle ?

BlitzMax Forums/BlitzMax Beginners Area/unfilled circle ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

'-------------------------------------------------------------
Rem
bbdoc: Draw circle using lines at the specified point and radius
about:
EndRem
Function DrawVectorCircle(cx:Double,cy:Double,radius:Double)
Local lx:Double=radius*Cos(0)
Local ly:Double=radius*Sin(0)
For Local d:Double=20 To 360 Step 20
Local nx:Double = radius*Cos(d)
Local ny:Double = radius*Sin(d)
DrawLine(cx+lx,cy+ly,cx+nx,cy+ny)
lx=nx
ly=ny
Next
End Function