Koch curve: Difference between revisions
Content added Content deleted
(→{{header|Lua}}: added Lua solution) |
m (→{{header|Lua}}: added ref to bresenham's line impl) |
||
Line 1,395: | Line 1,395: | ||
=={{header|Lua}}== |
=={{header|Lua}}== |
||
Using the Bitmap class [[Bitmap#Lua|here]], with an ASCII pixel representation, then extending.. |
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 |
<lang lua>local cos, sin, floor, pi = math.cos, math.sin, math.floor, math.pi |
||