Simple rules can lead to complex collective behavior. The Vicsek model illustrates this vividly: each particle is only concerned with trying to move in the same direction as its nearby peers, yet the behavior of the flock seems complex and rich.
Boundary
(10–2000)
Pointer
Order parameter φ = 0.00
Drag your pointer across the flock to push it around, or switch the pointer to attract and gather it instead. The order parameter under the canvas measures how aligned the flock is: turn the noise up past roughly a third and watch it collapse.