Click the green flag to render a dragon curve. Play around with the sliders and the button :)
This version adds a second mode with chamfered (flattened) corners, which I think looks very satisfying, especially when animated. Achieving this required much more experimenting and thinking than I had expected. I got the idea from an animation in this Wikipedia article: https://en.wikipedia.org/wiki/Dragon_curve When calculating the shorter segment lengths for mode 2, I use the silver ratio: https://en.wikipedia.org/wiki/Silver_ratio