I built an interactive particle gravity simulation that reacts to real-time hand gestures β fully in the browser.
No game engine.
No plugins.
Just WebGL + Three.js + AI-based hand tracking.
You can literally turn your hand into a gravity well and control thousands of particles in real time.
π Live Demo
π https://particle-gravity-fun.pages.dev/
π» Source Code (Open Source)
π https://github.com/yogender-ai/Particle-Gravity-Fun
β Feel free to star or fork if you find it interesting
β¨ Features
~8,000 particles rendered in real time
Smooth 60 FPS particle swarming
Dynamic color physics (gesture-based color transitions)
Pinch gesture triggers high-energy βcosmicβ effects
Runs entirely in the browser
π οΈ Tech Stack
Three.js (WebGL rendering)
JavaScript
AI Hand Tracking (MediaPipe)
WebAssembly (for performance-critical logic)
Cloudflare Pages (deployment)
π§ Why I Built This
This started as a fun experiment to explore how far creative coding + AI + web graphics can go without heavy frameworks.
Itβs exciting to see sci-fi-like interactions becoming possible directly on the web.
π Feedback Welcome
Iβm actively improving this project and experimenting with:
Better physics
More gesture types
Performance optimizations
Would love feedback from fellow developers π
If you enjoyed it, please β the repo or share ideas.
π Tags (important on dev.to)
Add these when publishing:
Top comments (1)
This is genuinely cool. Turning hand gestures into a gravity source feels playful but also technically solid, and getting this many particles running smoothly in the browser is no small thing. Nice example of how far creative coding with Three.js and WebGL can go today.