Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function circle(x, y, r, c)
- for i=-r,r,1 do
- local h = math.abs((r^2 - i^2)^(1/2))
- drawRect(x + i, y - h, x + i + 1, y + h, c)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement