A collection of colored circles, each searching for its place among the others.
Similar colors attract. Opposites repel.
Attraction — how strongly similar colors pull together
Repulsion — how strongly opposite colors push apart (short range)
Cohesion — clustered balls pull each other a little harder
Damping — how quickly motion settles
Try setting attraction high and repulsion low to watch colors self-organize into clusters.
Crank up repulsion to see opposite colors flee. Push cohesion to maximum and watch clusters
grow into gravity wells.
Press Space to toggle physics · Tweak sliders to see how colors behave