« home

Fractal Dragon Curve

Creator: Luis Enrique Cepeda Alvarado

The Heighway dragon is a plane-filling fractal curve generated by the Lindenmayer system with axiom FX and rules X → X+YF+, Y → -FX-Y. A turtle on a square grid draws a segment for each F and turns on + / -.

The figure shows three iteration orders (5, 9, and 13) of the same grammar.


Fractal Dragon Curve

  Download

PNGPDF

  Code

  fractal-dragon-curve.typ (7 lines)