LET'S CONNECT
β¨ Sign up for my newsletter at https://www.pattvira.com
β¨ Instagram: https://www.instagram.com/pattvira
β¨ Twitter: https://twitter.com/pattvira
--
Links:
π p5.js editor: https://editor.p5js.org/
π Double Pendulum Fractal Code: https://editor.p5js.org/pattvira/sketches/zFqaC0PLc
π Introduction to Creative Coding Playlist: https://youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π Double Pendulum: https://youtu.be/OJSzIaRRxG8
π Flow Fields (Perlin Noise): https://youtu.be/KOgRn2Brcdo
π Lagrangian Mechanics: https://www.myphysicslab.com/pendulum/double-pendulum-en.html
π @nicogsplayground 's The Chaotic Beauty of the Double Pendulum Fractal: https://www.youtube.com/watch?v=K5dOm_WWaNY
Timestamps:
0:00 Intro
0:35 Overview of a double pendulum
2:07 Create one double pendulum
9:34 Map pendulums' angles to colors
11:40 Slow down simulation time using a smaller time step variable
14:01 Create a Pendulum class
20:12 Create a grid of double pendulums
26:37 Final result