Back to Projects
experimentDecember 7, 2025

Mouse Star Cloud

An interactive n-body simulation built with p5.js that transforms your cursor into a gravitational anchor in space. A swarm of particles dynamically follows the mouse, responding in real time as if pulled by an invisible force field. When the cursor moves, the bodies trail behind it like a drifting cloud. But when the mouse is held down, the system shifts: an orbital force activates, and the particles begin circling the cursor, forming swirling, planetary-like motion.

Gallery

Video

Tools & Technologies