Labs · Fractals

Pythagoras Tree

Pythagoras Tree simulation

Another recursive tree, this time built from squares. On top of each square sits a right triangle, and on each of the triangle's two short sides grows a smaller square, and so on. By Pythagoras, the two child squares' areas always add up to the parent's area.

At 45° the tree is perfectly symmetric. Other angles make it lean and curl into fern- and broccoli-like shapes. A little Perlin noise on the angle makes it sway.

Sweep the angle from 20° to 70° slowly.

Controls

Evolved from Recursive Tree.