Anton Shestakov <av6@dwimlabs.net>, Wed, 16 Mar 2016 10:17:46 +0800
coffee: constructor doesn't have an implicit return
sierpinski.coffee
Permissions: -rw-r--r--
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