← 🧬 Biology

🌱 L-Systems

Preset
Axiom
Rules (one per line: X→XFX)
String length
Segments drawn
Scroll — zoom · Drag — pan · Sliders — adjust parameters

🌿 L-Systems — Procedural Plants & Fractals

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.

🔬 What It Demonstrates

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.

🎮 How to Use

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.

💡 Did You Know?

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.