Home▸Biology & Life▸2D L-Systems — Flat Lindenmayer Turtle Fractals

2D L-Systems — Flat Lindenmayer Turtle Fractals

A flat 2D Lindenmayer-system engine: real string-rewriting grammar with production rules, genuine turtle-graphics interpretation (F, +, -, [, ]), classic presets (Koch curve, dragon curve, fractal plant, Sierpinski), adjustable depth and angle, and animated progressive growth.

Biology & Life2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-lsystems ↗ Open standalone

This is the flat, top-down companion to the 3D L-Systems simulator. It runs the identical Lindenmayer string-rewriting grammar and turtle-graphics interpreter, but draws every segment as a plain 2D line on a flat canvas — no camera, no depth, no orbiting. Pick a preset (Koch curve, dragon curve, fractal plant, Sierpinski triangle and more), or write your own axiom and production rules, then watch the structure grow segment by segment.

⚙ Under the hood

A flat 2D Lindenmayer-system engine: real string-rewriting grammar with production rules, genuine turtle-graphics interpretation (F, +, -, [, ]), classic presets (Koch curve, dragon curve, fractal plant, Sierpinski), adjustable iteration depth and angle, and animated progressive growth.

l-systemlindenmayer systemturtle graphicsfractalkoch curvedragon curvesierpinski triangleprocedural plant2d

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)