Рет қаралды 643
LET'S CONNECT
✨ Sign up for my newsletter at www.pattvira.com
✨ Instagram: / pattvira
✨ Twitter: / pattvira
--
Links:
🔗 p5.js editor: editor.p5js.org/
🔗 Exploding Hearts Code: editor.p5js.org/pattvira/sket...
🔗 Introduction to Creative Coding Playlist: • START HERE: Creative C...
References:
🔗 Heart Curve Equations: mathworld.wolfram.com/HeartCu...
Related Videos:
🔗 Falling Hearts Coding Tutorial: • p5.js Coding Tutorial ...
🔗 Particle Systems Playlist: • Particle Systems
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!