Particle Life Online

Inspired by Clusters from Jeffrey Ventrella, we can observe in this simulation emergent behaviors reminding us of micro-organisms...

Each color or species interacts in a random way with other species. Particles can attract or repel each other leading to fun results. Try restarting the simulation multiple times until you find something interesting.



How it works :
At the start of each simulation, each color, corresponding to a specie, is assigned a random number for each different specie.

---/--- Blue Green Red
Blue ---/--- 1.8 -5.2
Green -4.3 ---/--- 0.7
Red -3.2 7.3 ---/---

Table with possible values

This number will define if the interaction between the two colors. A negative number will result in attraction and a positive number in repulsion.
Interactions are not symmetrical, for example : blue can attract green but green can repel blue (this will result in a sort of glider effect).

Glider particle life. Particle Life "Glider".

The force of these interactions diminishes based on the distance between the two particles. Also, if two particles get too close, we'll apply a strong repelling force so as they don't go througth each other. Still, these interactions mean that energy can be endlessy created in our simulation. To combat this, we add a friction force to all particles to prevent them from endlessly gaining speed.

That's all there really is to it, still, even with those simple rules we can get some fun results.