Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function matcore.DrawCircle(posx, posy, radius, color)
- local poly = { }
- local v = 40
- for i = 0, v do
- poly[i+1] = {x = math.sin(-math.rad(i/v*360)) * radius + posx, y = math.cos(-math.rad(i/v*360)) * radius + posy}
- end
- draw.NoTexture()
- surface.SetDrawColor(color)
- surface.DrawPoly(poly)
- end
Add Comment
Please, Sign In to add comment