Dragon Curves

A dragon curve, also known as a Heighway dragon, is a non self intersection space filling curve. It has a fractal dimension of 2 and is able to tile the plane.

Demo - 9th iteration

This is the curve generated by repeatedly folding a paper in half. Each iteration of the curve can be built from the previous. We can describe the curve in terms of RR and LL, where a RR represents turning to the right and drawing a segment, and a LL represents turning to the left and drawing a segement. The pattern can be described as follows:

  1. Start with a RR.
  2. For each iteration, append an RR to the previous iteration, then add on the previous iteration reversed and with LLs and RRs swapped.

The first few iterations would be:

  1. RR
  2. RR RR LL
  3. RR RR LL RR RR LL LL
  4. RR RR LL RR RR LL LL RR RR RR LL LL RR LL LL

The demo above shows the 9th iteration of the dragon curve.