← Lab

Swarm

About

I first made this in 2015 and have rebuilt it without its old libraries. A cloud of particles pulls in toward your pointer and spreads back out again, leaving trails behind. Pick a motion: a slow drift, big pulses out to a ring, or an elastic wave of thousands of particles.

Move the pointer or drag a finger and the particles follow it. Each one heads for wherever the pointer is right now, so when you move, its path curves partway through, and then it heads back out. I get the trails by fading out the previous frame instead of clearing it.

Press H to hide or show these controls.

This experiment needs WebGL, which this browser doesn't offer.