All examples By author By category About

nitaku

Square spiral (L-system)

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.