p5.js Coding Tutorial | πŸ’– Exploding Hearts πŸ’– (Particle Systems) @pattvira
p5.js Coding Tutorial | πŸ’– Exploding Hearts πŸ’– (Particle Systems)  @pattvira
Uploaded March 2024 | Updated November 2026, 1 day 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
πŸ”— Exploding Hearts Code: editor.p5js.org/pattvira/sketches/B7jG_ZOl0
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

References:
πŸ”— Heart Curve Equations: mathworld.wolfram.com/HeartCurve.html

Related Videos:
πŸ”— Falling Hearts Coding Tutorial: youtu.be/zH3eH3hlGoo
πŸ”— Particle Systems Playlist: youtube.com/playlist?list=PL0beHPVMklwjgTj2d4uK_R_1sdPg1hi4x&si=CiiYG9GjhG-XxzWd

Timestamps:
0:00 Intro
0:10 Create one heart-shaped outline using a heart curve equation
4:25 Create a Heart class
8:20 Create multiple Heart objects at mouse location
12:06 Create a Particle class to control each particle that makes up a heart shape
19:35 Expand hearts being making them explode and fall
23:03 Remove hearts that are offscreen from array
29:56 Make it prettty!
p5.js Coding Tutorial | πŸ’– Exploding Hearts πŸ’– (Particle Systems)p5.js Coding Tutorial | Color Gradient Animation #2 (lerpColor Function)p5.js Coding Tutorial | Spiral BettyDesign a Food Poster with Me! | Data Mini Challengep5.js Coding Tutorial |  Multiple Circles w While LoopArduino 101 | Episode 1: Getting Startedβ˜€οΈ Code With Me – Summer Edition | cozy lofi beatsHow to Direct AI Without Losing Your CraftHoliday Specials Code with Me πŸŽ„πŸŽ | christmas, lofi hip-hop beatsp5.js Coding Tutorial | Double Pendulum Fractalp5.js Coding Tutorial | Rotating Arcs Animation (Arc Function)p5.js Coding Tutorial | Oscillating Sphere
Patt Vira |

p5.js Coding Tutorial | πŸ’– Exploding Hearts πŸ’– (Particle Systems)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER