The basic pattern of a Pythagorean Tree is constructed by first drawing a square, then drawing a triangle on top of that square, then drawing two squares on top of the triangle. The triangle's angles can be set to any values. For this applet, alpha, beta, and gamma are the angles of the triangle. If the triangles are alternating, alpha and beta are swapped for each level. Interesting angles to try are:

alpha=60, beta=60
alpha=45, beta=45 (right triangle)
alpha=80, beta=20 (isosceles triangle)
alpha=80, beta=20, alternating=true

Your browser does not support Java.