I wrote these a little over a year ago before I’d started working. I’d taken a graphics class in school where we one of the things we implemented was a line drawing algorithm (something like this). I adapted some of that code I had written to draw fractals and other patterns that were nicely represented with grammars.

Code is here.

Dragon curve