L-Systems Explorer

Lindenmayer Systems: Fractal Growth Through String Rewriting

Preset Gallery
Rule Designer
Animation

Create Custom L-Systems

Design your own fractal structures by defining an axiom (starting string) and production rules. The turtle graphics interpreter recognizes these commands:

  • F: Draw forward by segment length
  • + / -: Turn right/left by angle
  • [ / ]: Push/pop turtle state (position and angle)
  • X, Y: Non-drawing symbols (used for structure only)
0
Current Iteration
0
Total Segments
0
String Length

Watch Growth Over Time

Observe how L-Systems evolve iteration by iteration. Each generation applies the production rules to the current string, revealing the emergent fractal structure step by step.

0
Current Iteration
0
Segments Drawn
0
String Length