🌳 Recursive Tree

Tweak depth, branch angle, and scale to grow different trees. Simple recursion, infinite variety.

Each branch splits into two; depth controls how many levels, angle and scale change the shape.

How it works

The tree is drawn by a recursive function: from each branch tip, two new branches are drawn at ±branch angle, with length scaled by the scale factor. Depth limits how many times this repeats. Change the sliders to see bushier, spikier, or more symmetric trees.