p5.js Coding Tutorial | Double Pendulum Fractal @pattvira
p5.js Coding Tutorial | Double Pendulum Fractal  @pattvira
Uploaded November 2024 | Updated November 2026, 17 minutes ago
LET'S CONNECT
✨ Sign up for my newsletter at pattvira.com
✨ Instagram: instagram.com/pattvira
✨ Twitter: twitter.com/pattvira
--
Links:
πŸ”— p5.js editor: editor.p5js.org
πŸ”— Double Pendulum Fractal Code: editor.p5js.org/pattvira/sketches/zFqaC0PLc
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

References:
πŸ”— Double Pendulum: youtu.be/OJSzIaRRxG8
πŸ”— Flow Fields (Perlin Noise): youtu.be/KOgRn2Brcdo
πŸ”— Lagrangian Mechanics: myphysicslab.com/pendulum/double-pendulum-en.html
πŸ”— @nicogsplayground 's The Chaotic Beauty of the Double Pendulum Fractal: 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
p5.js Coding Tutorial | Double Pendulum Fractalp5.js Coding Tutorial | Rotating Arcs Animation (Arc Function)p5.js Coding Tutorial | Oscillating SpherePass by Value vs Pass by Reference - Creative Coding with p5.jsp5.js Coding Tutorial | Introduction to matter.js πŸ”΄ πŸŸͺp5.js Coding Tutorial | Musical Onion πŸ§…p5.js Coding Tutorial | Star-Shaped Ring Animationp5.js Coding Tutorial | MΓΆbius Stripp5.js Coding Tutorial | Bouncing Wave Typographyp5.js Coding Tutorial | Bouncing Balls with matter.jsp5.js Coding Tutorial | Magnifying Glassp5.js Coding Tutorial | Snowflakes
Patt Vira |

p5.js Coding Tutorial | Double Pendulum Fractal

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER