This application shows a Pythagoras tree to interact with.

*Pythagoras tree on wikipedia*:

The Pythagoras tree is a plane *fractal* constructed from squares.

Invented by the Dutch mathematics teacher

Albert E. Bosman in 1942, it is named

after the ancient Greek mathematician Pythagoras

because each triple of touching squares encloses a right triangle,

in a configuration traditionally used to depict the *Pythagorean theorem*.

If the largest square has a size of L × L, the entire

Pythagoras tree fits snugly inside a box of size 6L × 4L.

The finer details of the tree resemble the Lévy C curve.

Next to watching the Pythagorean theorem and recursion in action,

this application can also be used as a benchmark for

comparing the different ways of drawing in GameMaker.

Provides are the following modes:

– Using d3d and primitives with textures.

– Using d3d and primitives with color gradients.

– Drawing (colored) lines.

– Drawing sprites scaled and rotated.

For playing around with the tree you can change the number of recursions,

the top angle of all triangles as well as the edge lenghts of all rectangles.