Overview
Dive into the fascinating world of fractals with this 31-minute coding challenge video. Learn how to create an animated Dragon Curve fractal using p5.js and JavaScript. Explore the algorithm behind this intriguing pattern, which mimics repeatedly folding a strip of paper. Follow along as the instructor guides you through the coding process, from writing the rotate function to implementing animation and scaling. Discover techniques for adding starting positions, creating a nextGeneration() function, and applying a reduction ratio. By the end of the tutorial, you'll have a fully functioning Dragon Curve animation and be inspired to experiment with your own variations. Perfect for those interested in generative art, mathematical patterns, and creative coding.
Syllabus
Introduction
The Nature of Code book
Explain algorithm
Start coding
Write rotate function
Rotate all the segments
We have the dragon curve!
Add animation
Add the starting positions for a and b
Scale the lines
Add a nextGeneration function
The reduction ratio
Target zoom
Challenge complete!
What can you do?
Outro
Taught by
The Coding Train