Anonymous user
Koch curve: Difference between revisions
m
→{{header|Lua}}: added ref to bresenham's line impl
(→{{header|Lua}}: added Lua solution) |
m (→{{header|Lua}}: added ref to bresenham's line impl) |
||
Line 1,395:
=={{header|Lua}}==
Using the Bitmap class [[Bitmap#Lua|here]], with an ASCII pixel representation, then extending with <code>line()</code> as [[Bitmap/Bresenham%27s_line_algorithm#Lua|here]], then extending further..
<lang lua>local cos, sin, floor, pi = math.cos, math.sin, math.floor, math.pi
|