Back to Pattern Factory

Fractal Tree

Color

What you just learned: This tree draws itself by repeating one simple rule: “draw a branch, then draw two smaller branches.” This is called recursion — a function that calls itself. Trees, rivers, and snowflakes all follow recursive patterns.