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!
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!





![βοΈ Code With Me β Summer Edition | cozy lofi beats
βοΈ Whether youβre typing along or just lurking for cozy vibes, youβre totally invited. Come chill with us all summer inside SPARK, my creative coding community / nerdy summer camp.
ποΈ Join the fun: https://www.pattvira.com/spark
π Chladni Patterns tutorial: https://youtu.be/J-siGcsK2k8
LETS CONNECT
β¨ Sign up for my newsletter at https://www.pattvira.com
β¨ Instagram: https://www.instagram.com/pattvira
β¨ Twitter: https://twitter.com/pattvira
πΆ Music by:
shushubobo - coffee time
[no copyright music] https://www.youtube.com/watch?v=7PvYu-1iEbY
shushubobo - cherry blossom kitkat
[no copyright music] https://www.youtube.com/watch?v=t1dGx2fSgC8
shushubobo - what the bunny doin
[no copyright music] https://www.youtube.com/watch?v=yEmvQKkuLL0
shushubobo - oh my cat
[no copyright music] https://www.youtube.com/watch?v=UHwEZPDXR2Y βοΈ Code With Me β Summer Edition | cozy lofi beats](https://i.ytimg.com/vi/Zu2GZWhHkks/mqdefault.jpg)




