A JS implementation of the Harter-Heighway Dragon Curve

Five years ago, I did a post in Swedish on the Harter-Heighway Dragon Curve, with C# source code. I have translated that code to JavaScript and added animation to the rendering. The fractal describes a way of folding a piece of paper so that its outline takes up a surface. Anyone who has read the book Jurassic Park has probably seen the fractal depicted.

The repository is located here and a live demo is available here.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *