Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drawCircle=function(xCenter,yCenter,radius,color,width)
- local coords={}
- local r2=radius*radius
- local x,y
- for x = -radius, radius do
- y=math.sqrt(r2-x*x)+.5
- coords[x+radius+1]={xCenter+x,yCenter+y}
- coords[radius*3-x+2]={xCenter+x,yCenter-y}
- end
- console.canvasDrawPoly(coords,color,width)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement