--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sierpinski.coffee Sat Mar 12 22:32:57 2016 +0800
+ constructor: (@$el, @width, @height, @order) ->
+ str.push ' ' for [1..len]
+ @rows.push fillrow @width for [1..@height]
+ replacec = (str, pos, c) ->
+ str.substr(0, pos) + c + str.substr(pos + c.length)
+ if 0 <= x < @width and 0 <= y < @height
+ @rows[y] = replacec @rows[y], x, c
+ if @pointer >= @rule.length
+ @angle = (@angle + 60 + 360) % 360
+ @angle = (@angle - 60 + 360) % 360
+ @$el.text @rows.join '\n'
+class window.Sierpinski extends L
+class window.Flowsnake extends L