T-square — Fantastic Fractal Explorer

T-square

Start with a square. On each of its four corners, center a square of half its size. Each new square has one corner inside the square it hangs from and three free corners; on each free corner, center a square of half its size again, and keep going. The squares pile up into a shape with a crinkled edge, the T-square.

Every square is a smaller copy of the first, so the picture is a copy tree: each copy has three children (the center square has four), and each child sits on its parent's corner.

Ratio and twist

The point you drag is the outer corner of the square on the center square's top-right corner. Dragging it changes every copy at once. In the center square's own frame, with its corners at , a child on the corner , where is one of , is the image of its parent under

where the complex number sets the child's size (the ratio) and its turn (the twist). The classic T-square has . A smaller ratio leaves the squares apart; a larger one makes them overlap more; a twist turns each square a little against its parent, and the turns add up along each branch into spirals. The panel shows the ratio and the twist.

Color and depth

A square at level adds to its parent's color value, where is the color ratio, so deeper squares change color less. The depth slider sets how many levels are drawn; the deepest allowed is set by the budget of squares.