This program draws the dragon curve, a plane filling curve, recursively. (there was a dynamic solution at some point but it had 2^(depth) memory complexity, so it's better this way, unless you have memory to spare)
The dragon curve is so awesome Donald Knuth has one made up of tiles in his house.
It's implemented in turtle graphics with cairo, so be shure to have the cairo libs installed.
Running
make
./dragon_curve <depth>
should compile and draw a dragon of given depth in .svg to the dragon.svg file.
Note viewport overflows are not handled.