• How to draw a circle
    2 replies, posted
How to draw a circle(ghost) on the coordinates - [-682.2032 -1625.6024 -239.9688]?
[CODE]local circle = {} local color = Color(0,0,0,200) -- you can change there color for i = 1, 255 do circle[i] = { x = math.cos((360/255) * i) * radius, y = math.sin((360/255) * i) * radius } end cam.Start3D2D( pos, Angle(-682.2032, -1625.6024, -239.9688), 1 ) surface.SetDrawColor( color ) draw.NoTexture() surface.DrawPoly( circle ) cam.End3D2D()[/CODE]
[url]https://wiki.garrysmod.com/page/surface/DrawCircle[/url]
Sorry, you need to Log In to post a reply to this thread.