L-System Playground


Shortcuts

Axiom is the initial state of L-System before any of the rules are applied. Axiom corresponds to zero iterations.

The following commands can be used in axiom:

Rules are applied to L-System state on each iteration. These are simple substitution rules which replace letters with strings. If no rules can be applied, L-System state doesn't change.

Rules syntax: The following commands can be used in substitution string:

Rotation angle in degrees used by commands "-+<>^&" (full rotation is 360 degrees).

When focus is outside of text inputs, "a" and "A" can be used as shortcuts to increase/decrease angle by 5 degrees.

Amount of times the substitution rules will be applied to L-System state starting with axiom.

Note that rules often have exponential complexity so specifying too many iterations can freeze the browser. (For most built-in L-Systems more than 8 iterations is already too much.)

Keyboard: Mouse: