Lindenmayer rewriting rules grow lifelike plants, fractal curves and space-filling patterns. 10 presets include Koch curve, Hilbert curve, Dragon curve, Barnsley fern and Sierpinski triangle.
A string is repeatedly rewritten using production rules. The resulting string is interpreted as turtle graphics commands: move forward, turn left/right, push/pop position.
Choose a preset or write custom rules. Adjust iteration depth, angle and segment length. Watch the L-system evolve from simple axiom to complex structure.
L-systems were invented by biologist Aristid Lindenmayer in 1968 to model plant cell growth. They can describe everything from algae branching to tree canopies to city street layouts.