An interactive p5.js + MediaPipe Hands + Matter.js playground where colorful circles react to hand movement.
These instructions will get your project running locally.
# 1. Clone the repo
git clone https://github.com/suzubu/hand-tracking-playground.git
# 2. Navigate into the project folder
cd hand-tracking-playground
# 3. Install dependencies
npm install
# 4. Run the app
npm run devBuilt with:
- 🖐️ Real-time hand tracking via webcam
- 🎨 Interactive glassy circles that react to hand gestures
- ⚡ Physics simulation with Matter.js
- 🌗 Toggle between interaction modes (gather, repel, attract)
- p5.js used for rendering and UI
- MediaPipe Hands for detecting hand landmarks
- Matter.js manages the circle physics
- Custom UI controls stored in
components/uiControls.js - Designed for modular clarity with folders for physics, graphics, render, utils, and store
This project was inspired by:
- @costardrouge.jpg
- Interactive media art and coding playgrounds
- Google’s MediaPipe demos
- Creative coding influences like Daniel Shiffman’s Coding Train
- ❌ Performance may lag on lower-end devices
- 🔍 Some hand gestures may be misinterpreted in poor lighting
- Add color customization for circles
- Expand interaction types (e.g., swirl, magnetize)
- Improve mobile responsiveness
- Export canvas snapshots
MIT — feel free to use and adapt!
Made with ☕ + 🎧 by suzubu