🧬 Particle Life

Simple attraction rules, emergent complexity — watch particles self-organize.

Interaction matrix:

RGBY
R0.00.00.00.0
G0.00.00.00.0
B0.00.00.00.0
Y0.00.00.00.0

Green = attract, Red = repel

Hit Randomize to generate new rules. Each run produces unique emergent patterns.

How it works

Each particle species (color) has an attraction or repulsion value toward every other species, stored in the interaction matrix. Positive values mean attraction, negative means repulsion. A short-range repulsion prevents particles from overlapping.

Despite the simplicity of these rules, the system produces strikingly lifelike behavior: orbiting clusters, chains, symbiotic pairs, and predator-prey dynamics. Each random matrix creates a unique "universe" with its own emergent physics.