Advertisement
Guest User

Circle Func

a guest
Feb 20th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.14 KB | None | 0 0
  1. function circle(x, y, r, c)
  2.     for i=-r,r,1 do
  3.         local h = math.abs((r^2 - i^2)^(1/2))
  4.         drawRect(x + i, y - h, x + i + 1, y + h, c)
  5.     end
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement