2 videos

One line

Folding and space-filling curves: every picture is a single unbroken line.

Every picture in this series is a single line drawn without lifting the pen, like the edge of a folded paper strip, a snowflake's outline or a path through every cell of a square. Each one is built by repeating one simple step, and each step makes the line longer and more crinkled while it stays one unbroken piece.

How it works

One rule, applied to its own result. Each curve starts from a short piece and a rule for replacing it. Apply the rule, then apply it again to everything you just drew, and again. This is the same "do it again to the result" idea behind every fractal.

  • Folding. Fold a strip of paper in half, again and again, then open every crease to a right angle. Each fold doubles the number of segments, and the new line is the old one plus a copy of it turned 90° about its end. The result is the dragon curve (No. 026).
  • Replacing edges. Replace the middle third of every edge with two sides of a small triangle. Each edge becomes 4 edges a third as long. The limit is the Koch snowflake.
  • Copying and joining. Shrink the path to a quarter of the square, make 4 copies, turn them so their ends meet, and join them. The limit is the Hilbert curve.

Longer and longer, forever. If each step multiplies the length by a number bigger than 1, the limit is infinitely long, even though it fits on the screen. The Koch edge grows by 4/3 each step, while its area stays below 8/5 of the starting triangle. The Hilbert curve roughly doubles in length with every order.

Self-similar, with an in-between dimension. Each curve is made of smaller copies of itself. When a shape is N copies of itself, each shrunk by a factor s, its fractal dimension is log N / log s. The Koch edge is 4 copies at a third of the size, so log 4 / log 3 ≈ 1.26, between a line and an area. The Hilbert curve is 4 copies at half the size: log 4 / log 2 = 2. In the limit it passes through every point of the square, a line that fills an area.

Still one line. The dragon touches itself at some corners but never crosses itself or runs along the same segment twice, and each stage of the Hilbert curve visits every cell of its grid once without crossing itself.

In the video

No. 026 folds a strip 1 to 13 times, then traces all 16,384 segments of fold 14 without lifting the pen. Each crease's direction follows a simple rule: write its number in binary, and the digit just above its lowest 1 decides left or right.

Go further