Home▸Mathematics▸Pythagoras Tree (2D)

🌳 Pythagoras Tree (2D)

A 2D Canvas simulation of the Pythagoras tree fractal, built from real squares and right triangles per the Pythagorean theorem. Adjust recursion depth, branch angle and lean, and watch it grow.

Mathematics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-pythagoras-tree ↗ Open standalone
⚙ Under the hood

A 2D Canvas simulation that builds the Pythagoras tree fractal from real recursive squares: each square spawns two smaller child squares along the legs of a right triangle erected on its top edge, following the Pythagorean theorem a squared plus b squared equals c squared. Adjust recursion depth, branch angle, lean and grow speed, and watch the tree build level by level.

FractalRecursionGeometryPythagorean TheoremCanvas2D

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)