Labs · Fractals
L-Systems
Aristid Lindenmayer invented L-systems to model how plants grow. You start from an axiom string and rewrite every character in parallel using production rules, once per generation. A "turtle" then reads the result: F/G = draw forward, +/− = turn, [ = save position, ] = restore it.
A handful of characters can describe ferns, snowflakes and space-filling curves. The current rules appear in the top-left panel.
Choose "Fractal plant" and move the angle slider slowly.
Controls
- System
- Generations
- Turn angle (°)
- Animate drawing
Evolved into Mandelbrot & Julia Explorer, Chaos Game & IFS Fractals, Stochastic L-System Garden.