Heighway dragon — Fantastic Fractal Explorer
Heighway dragon
Fold a strip of paper in half, then in half again the same way, and again. Unfold it so every crease makes a right angle, and look at it edge on: the strip zigzags in a pattern that never crosses itself. Fold it more and more often and the shape approaches the Heighway dragon, named after John Heighway, one of the three NASA physicists who found it in the 1960s.
Here the dragon is built from a segment, the chord from 0 to 1. Bend it at a point into two segments, 0 to and to 1. Then bend each of those the same way, but the second one runs backwards, from 1 to , so its bend falls on the other side. Repeat on every segment. In complex numbers the two halves are the images of the chord under
The classic dragon has , a right-angled bend.
What you can change
The point you drag is the bend . Both halves must be shorter than the chord, and , or the copies would never shrink. Moving it away from the right angle gives the whole family of curves of this kind.
The depth slider sets how many levels there are, counting the straight chord as level 1, so depth bends it times into segments. Only the last level is drawn, each segment as a small diamond: its bend and the bend's mirror image across it. The color ratio colors each copy by the path that led to it: a second half at level adds .