p5.js Coding Tutorial | Interactive Hexagonal Truchet Tiles with ml5.js (Part 3/3) @pattvira
p5.js Coding Tutorial | Interactive Hexagonal Truchet Tiles with ml5.js (Part 3/3)  @pattvira
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
p5.js Coding Tutorial | Interactive Hexagonal Truchet Tiles with ml5.js (Part 3/3)Creative Coding Math: Oscillation - Simple Harmonic Motionp5.js Coding Tutorial | NileRed Logo (BZ Reaction)p5.js Coding Tutorial |  Draw & Color ShapesJoy Divisions Unknown Pleasures album cover #p5js #javascript #creativecoding #coding #shortsp5.js Coding Tutorial | Menger Spongep5.js Coding Tutorial | Collisions Without a Physics Library!First Year on Youtube & Whats Next!Sound Mini Series | EPISODE 1 - p5.Oscillatorp5.js Coding Tutorial | Image Manipulation - Pixelated Techniquesp5.js Coding Tutorial | Interactive Display with Rotating Blocksp5.js Coding Tutorial | Interactive Dandelion (with ml5.js - faceMesh)
Patt Vira |

p5.js Coding Tutorial | Interactive Hexagonal Truchet Tiles with ml5.js (Part 3/3)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER