Toolgeist › Math & Unit
L-System Fractal Plant Generator — Turtle Graphics From Grammar Rules
Write L-system (Lindenmayer system) production rules — the same formal grammar Aristid Lindenmayer originally developed to model plant growth — and watch turtle graphics compile them recursively into branching plants, trees, and classic fractal curves like the Koch snowflake, purely from string-rewriting rules applied generation after generation.
How to use L-System Fractal Plant Generator
- Choose a preset or write your own axiom and production rules.
- Set the recursion depth.
- Watch turtle graphics render the resulting structure.
- Adjust angle and rule parameters to reshape the growth pattern.
Frequently asked questions
- What is an L-system, actually?
- A formal grammar that starts from a simple string (the axiom) and repeatedly rewrites it using production rules — after enough generations, interpreting the resulting string as turtle-graphics drawing commands produces plant-like branching structures.
- Why do L-systems produce realistic-looking plants?
- Because real plant growth is itself a recursive, rule-based branching process — L-systems were originally developed by biologist Aristid Lindenmayer specifically to model that growth, not just to look organic.
- Can I make the classic Koch snowflake with this?
- Yes — the Koch snowflake and similar fractal curves are among the simplest L-systems, usually included as a preset alongside the plant-growth rule sets.
Related Math & Unit tools
Also searched for: l-system generator online · lindenmayer system fractal plants · turtle graphics fractal generator
Browse all 738 free tools on Toolgeist →