CapsAdmin

Untitled

Oct 11th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. window.Open(500, 500)
  2.  
  3. local points = 4
  4. local radius = 50
  5.  
  6. event.AddListener("OnDraw2D", "lol", function()
  7.     surface.Color(0, 0, 0, 1)
  8.    
  9.     for i = 0, points do
  10.         i = (i / points) * math.pi * 2
  11.         local x = math.sin(i) * radius
  12.         local y = math.cos(i) * radius
  13.        
  14.         surface.DrawRect(x + 256, y + 256, 4, 4)
  15.     end
  16.  
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment