<:> Pythagoras tree



Slightly more complex tree generation.

At each stage the drawing of a square gives rise to two smaller squares so that the squares bound a right triangle.

In a stochastic version, right triangles are randomly varied at each stage for a less symmetrical result.

PythagorasTree applet