← All tools

L-System Generator

Explore the beauty of formal languages and fractals with the L-System (Lindenmayer System) Generator. Used to model the growth of plants and biological structures, L-Systems use a set of recursive rules to expand an initial string (axiom) into a complex pattern, which is then rendered as a geometric path. Everything runs locally in your browser.

Preset

Configuration

Axiom
Rules
Iterations
Angle (deg)
Step Size

Resulting String

—

Visualization

How it works. The generator starts with the Axiom. In each iteration, it replaces every character in the current string according to the Rules (e.g., F → F+F-F-F+F). The resulting string is then interpreted as drawing commands:
- F: Move forward and draw a line.
- +: Rotate right by the specified angle.
- -: Rotate left by the specified angle.
- [ la: Save current position and angle to a stack.
- : Restore last saved position and angle from the stack.
Pairs with the Game of Life and Maze Generator tools. Everything runs locally — nothing leaves your browser.