Depth
Angle °
Ratio %
Asymmetry %
🌿 Natural variation %

A fractal canopy is built by repeated bifurcation: a trunk splits into two branches at a fixed angle from its own direction, each of those splits again at the same angle, and so on for a fixed number of iterations (depth). Every generation shrinks by a constant length ratio relative to its parent, which keeps the whole structure self-similar - zooming into any branch shows the same shape as the whole tree. Asymmetry skews that split unevenly between the two sides - positive values swing the right branch wider than the left (and vice versa for negative values), giving the canopy a wind-blown lean instead of a perfectly mirrored fork. Branch color and thickness are interpolated by depth, from a brown trunk to green tips, purely to make the generations easier to read.

A canopy is an L-system without the grammar. An L-system draws a tree by rewriting a string with rules and then walking the result with a turtle; here the same branching is written straight as a recursion (draw the trunk, then call the same thing twice on a shorter branch turned each way), which is why it has sliders for angle, length ratio and lean instead of a rule to edit. The L-system pages can draw trees like this from a rewriting rule, and much more.

This page was created with Claude Code.