A dragon curve made using pretty much the algorithm I saw with openscad on Rosetta code. https://rosettacode.org/wiki/Dragon_curve.
Then it had to be hacked up a little bit to get it to work with d3.
This way also isn’t really optimized for showing each different unfold. Want to look into how people did it in some of the pretty animations and step throughts.