move your cursor, stars respond
p5.js · live
. Interactive Night Sky · Creative Coding · p5.js · Interactive

Interactive
Night Sky

When I was little, I would gaze at the night sky and imagine reaching out to touch the stars, rearranging them with my fingers. This interactive starfield captures that sense of wonder. Hundreds of luminous stars fill the canvas, each twinkling gently, waiting to respond to your touch.

As the cursor moves close, the stars bend and drift away, a subtle cosmic dance that feels almost alive. Through making this, I learned how small details like timing, size, speed, and fading trails can completely change the mood of a system.

↗ Open full screen
p5.js JavaScript Particle Systems Mouse Interaction