1. Start with a seed
The axiom is like the first cell of a plant. It may be only one symbol, such as F, but it contains the starting instruction for the whole shape.
Grow procedural trees, ferns, algae, vines, and branching plant structures.
The axiom is like the first cell of a plant. It may be only one symbol, such as F, but it contains the starting instruction for the whole shape.
In the simple preset, F becomes F[+F]F[-F]F. Read it as: grow forward, branch right, grow forward, branch left, grow forward.
Imagine a tiny robot with a pen. F tells it to walk forward, + and - turn it, and brackets let it jump back to an earlier branch point.
L-systems are powerful because the same rule is reused again and again. That is similar to nature: a tree does not need a blueprint for every twig. It follows repeated growth habits, and complexity appears over time.
An iteration is one growth generation. At iteration 0, you only have the axiom. At iteration 1, the first replacements happen. By iteration 5 or 6, the instruction string can become thousands of symbols long.
The bracket symbols work like save points in a game. When the turtle sees [, it remembers where it is. After drawing a side branch, ] sends it back so another branch can grow from the same stem.