This is a boid simulation, which is a very simple model for emulating flock behaviour (birds, ants, etc). If you let the simulation run for a bit, all of the boids will begin to settle into groups. This one is rendered on the GPU, using raw WebGL.

...the actual simulation is in Javascript though, so its a bit slow.