http://www.lua.org/cgi-bin/demo is easy way to run Lua without installing anything.
1)

2)

3)

4)

5)

Code: Select all
--its boxxy! the circular startbox maker!
--for use with http://www.lua.org/cgi-bin/demo
local n = 7 --how many boxes
local r = 75 --radius of circle
local a = 10 --size of boxes
function box (x,y,a)
x=math.floor (x)
y=math.floor (y)
io.write("!addbox " .. x-a .. " " ..y-a .. " "..x+a.." " ..y+a.. "\n")
end
for i = 0.001,2*math.pi,(2*math.pi/n) do
box (100+math.sin(i)*r ,100+math.cos(i)*r,a)
end