Particle Life

Particles of each colour attract or repel the others according to one matrix. Clusters, cells and swarms emerge with no central control.

Browser port of the physics in 41yannik/Particle-Life (spatial hashing, toroidal world, same force law). By Yannik Huber.