p5.js Coding Tutorial | Double Pendulum @pattvira
p5.js Coding Tutorial | Double Pendulum  @pattvira
Uploaded November 2024 | Updated November 2026, 1 hour ago
LET'S CONNECT
✨ Sign up for my newsletter at pattvira.com
✨ Instagram: instagram.com/pattvira
✨ Twitter: twitter.com/pattvira
--
🚨 In the diagram, I switched the labeling locations for x and y (for both x1/y1 and x2/y2), but the trigonometric equations are correct!

Links:
πŸ”— p5.js editor: editor.p5js.org
πŸ”— Double Pendulum Code: editor.p5js.org/pattvira/sketches/vHZ9pCIqZ
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

References:
πŸ”— Pendulum Waves: youtu.be/GqVyz-8AGcA
πŸ”— Lagrangian Mechanics: myphysicslab.com/pendulum/double-pendulum-en.html

Timestamps:
0:00 Intro
1:06 Walk through double pendulum diagram
2:44 Create one double pendulum
7:42 Use Lagrangian mechanics to calculate angular acceleration
11:20 Create a Pendulum class
15:29 Create multiple pendulum objects with different initial conditions
19:29 Experiment!
p5.js Coding Tutorial | Double Pendulum☁️ Code With Me | cute cozy lofi beatsp5.js Coding Tutorial | Pixelated Kaleidoscopep5.js Coding Tutorial |  Car in Motion (Variables)p5.js Coding Tutorial | Album Cover - Unknown Pleasures by Joy DivisionSound Mini Series | EPISODE 3 - p5. Envelopep5.js Coding Tutorial | Basics of Particle Systemsp5.js Coding Tutorial | Interactive Clock Cursor Effectp5.js Coding Tutorial | Collage (Image Manipulation)p5.js Coding Tutorial | Bubbly Emoji EffectWhat might creative coding look like in the age of AI?p5.js Coding Tutorial | Rotating Polygons on the Major Scale 🎡
Patt Vira |

p5.js Coding Tutorial | Double Pendulum

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER