Fractal Lab

Tool

L-system playground

Pick a Lindenmayer system, choose an iteration depth, and watch a turtle render it line by line. All seven systems are deterministic D0L-systems, the simplest L-system class, but they already produce snowflakes, dragons, plants, and space-filling curves.

Sequence length grows exponentially with iterations.

Preset uses 90°. Drift it to see how the shape morphs.

axiom: F

rule: FF+F-F-F+F

sequence length: 0

render: 0 ms

Turtle interpretation

  • F G A B: step forward, drawing
  • +: turn right by angle
  • -: turn left by angle
  • [: push position and heading on stack
  • ]: pop position and heading

Read the background article at /fractals/lsystems for the formal definition and history. The closely related fractals can be found on their own pages, e.g. Koch snowflake and Heighway dragon.

FAQ

Frequently asked questions

AI Summary

Summarize this page in your favorite LLM