Uploaded February 2025 | Updated November 2026, 2 days 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
π Valentine's Day Specials (2025) Code: editor.p5js.org/pattvira/sketches/yCVYNCnKZ
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
Inspiration:
π Interstitial Fragment Processor by Golan Levin (2007): flong.com/archive/projects/ifp/index.html
References:
π Valentine's Day Specials (2024): youtu.be/zH3eH3hlGoo
π ml5.js:
π Website: ml5js.org
π ml5.js playlist: youtube.com/playlist?list=PL0beHPVMklwhxJ6G3Hn4uLQTDe4Y562Dr&si=fstnmy-6Q8ELkFVc
Timestamps:
0:00 Intro
0:54 Explore handPose model from ml5.js
6:49 Incorporate model into sketch
7:41 Create an array to keep track of key points
10:16 Draw out contours
12:48 Write a function to check when heart shape is formed
18:01 Create a Heart class
24:38 Add movement by implementing velocity and acceleration
28:04 Remove heart objects that are off screen
31:01 Final touches
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
π Valentine's Day Specials (2025) Code: editor.p5js.org/pattvira/sketches/yCVYNCnKZ
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
Inspiration:
π Interstitial Fragment Processor by Golan Levin (2007): flong.com/archive/projects/ifp/index.html
References:
π Valentine's Day Specials (2024): youtu.be/zH3eH3hlGoo
π ml5.js:
π Website: ml5js.org
π ml5.js playlist: youtube.com/playlist?list=PL0beHPVMklwhxJ6G3Hn4uLQTDe4Y562Dr&si=fstnmy-6Q8ELkFVc
Timestamps:
0:00 Intro
0:54 Explore handPose model from ml5.js
6:49 Incorporate model into sketch
7:41 Create an array to keep track of key points
10:16 Draw out contours
12:48 Write a function to check when heart shape is formed
18:01 Create a Heart class
24:38 Add movement by implementing velocity and acceleration
28:04 Remove heart objects that are off screen
31:01 Final touches










