Uploaded December 2025 | Updated November 2026, 10 hours 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
π Interactive Hexagonal Truchet Tiles (w ml5.js) Code:
- Starter Code: editor.p5js.org/pattvira/sketches/Iam0LmaUH
- Final Code: editor.p5js.org/pattvira/sketches/aI6-HYXiY
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π Truchet Tiles Playlist: youtube.com/playlist?list=PL0beHPVMklwjwHNjK5V1XXnMFKKG9PZOy
π ml5.js Library: ml5js.org
π p5.js atan2() function: p5js.org/reference/p5/atan2
Timestamps:
0:00 Intro
0:51 Walk through ml5.js Library and bodyPose model
4:51Flip video from webcam and points tracked from model
7:11 Get right and left hands' points
9:18 Scale video dimensions to fit canvas
14:17 Integrate body tracking sketch with the original sketch
18:20 Activate hexagons based on hands' location
26:10 Rotate hexagons using hands' rotating motion
39:12 Pick camera and configure settings
44:45 Add more rectangular boxes at a random interval
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
π Interactive Hexagonal Truchet Tiles (w ml5.js) Code:
- Starter Code: editor.p5js.org/pattvira/sketches/Iam0LmaUH
- Final Code: editor.p5js.org/pattvira/sketches/aI6-HYXiY
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π Truchet Tiles Playlist: youtube.com/playlist?list=PL0beHPVMklwjwHNjK5V1XXnMFKKG9PZOy
π ml5.js Library: ml5js.org
π p5.js atan2() function: p5js.org/reference/p5/atan2
Timestamps:
0:00 Intro
0:51 Walk through ml5.js Library and bodyPose model
4:51Flip video from webcam and points tracked from model
7:11 Get right and left hands' points
9:18 Scale video dimensions to fit canvas
14:17 Integrate body tracking sketch with the original sketch
18:20 Activate hexagons based on hands' location
26:10 Rotate hexagons using hands' rotating motion
39:12 Pick camera and configure settings
44:45 Add more rectangular boxes at a random interval










