← Back to all activities한국어 →
🌳 Stochastic Fractal Tree

Watch a shape grow like a
real tree from just one rule

If you keep repeating one simple rule—"one branch splits into two (or three) branches"—a tree-like shape emerges. Add a little randomness to the angle and length each time, and the result looks natural, like a real tree rather than something drawn by a computer.

Rule (L-system): Draw one stem, then at its tip draw two shorter branches by turning the angle slightly to the left and right. Repeat this process recursively to a set depth (number of repetitions). By adding a small amount of randomness to the angle and length each time, you get a different tree shape every time.
Branch recursion depth9
Randomness (amount of variation)Moderate
💡 This approach is called an L-system. Hungarian biologist Aristid Lindenmayer first created it in 1968 to describe the rules of plant growth mathematically.