This simulation shows 1600 particles interacting depending on their distance to each other. Instead of Newton's law of gravity, the distance between the particles is plugged into a sine function. Positive outputs mean attraction and negative repulsion. Then this happened...
This code was written in Matlab