The Dragon Curve fractal is created by repeatedly folding a strip of paper in half, then unfolding it to form a curve. In this challenge, I attempt to code an animation of the Dragon Curve forming with p5.js in JavaScript.
The Nature of Code book (2024 p5.js edition)
The Nature of Code book (2024 p5.js edition) is now available for purchase!
Wikipedia page discussing the construction and properties of the Dragon curve.
Reference for the concat function.
Dragon Curve unfolding animation rendered in Cinema 4D.
Beautiful Dragon Curves, Fractals and Jurassic Park. Featuring Rob Eastaway.
- Editing
by Mathieu Blanchette
- Animations
by Jason Heglund