Back to archiveGenerative Experiments
Recursive Tree Sway
A fractal branching tree animated with sinusoidal sway and depth-based color gradients.
How It Works
- The tree is drawn recursively from trunk to leaf tips with a depth cutoff.
- Each branch splits into two children with time-varying spread and sway.
- Branch thickness and alpha are scaled by recursion depth for visual hierarchy.
- The full scene redraws every frame to keep motion clean and responsive.
Source Code
tsx