The Lévy C curve in... C

I've been reading about HTML and other web standards lately, and it eventually led me to SVG, a vector image format I've been meaning to look into for some time. By a fortunate coincidence, I had been reading about PostScript just prior to this, and SVG came naturally after that. So I set out to make my first SVG drawing, and after a while I decided on the Lévy C curve . This: Preparation: SVG Let's get right to it. We're gonna make it using the SVG <path> element. The <path> element is made like this: <!-- draws an equilateral triangle --> <path d="M 0 0 L 100 0 L 50 86 Z"></path> That is, the drawing commands are put in the d attribute. They are more or less similar to their PostScript cousins. The commands consist of an identifying letter followed by a pair of coordinates. Uppercase letters indicate absolute coordinates, whereas lowercase letters indicate relative (to the current point) coordinates. M st...