block by nitaku 8b9e134ca8bae13bb470

Square spiral (L-system)

Full Screen

A Lindenmayer system that draws a spiral on a square tiling, starting from its center. See also a hexagonal one.

The X -> XF rule takes into account the growth in length of the spiral sides (one unit is added for each half turn), while the Y -> Y+XF+XF describes the concatenation of half turns of the spiral.

index.js

index.html

index.coffee

index.css