My Way or the Slime Way

Simulating the spread of the Physarum polycephalum slime mold using cellular automata.

r
decayT
SA
RA
SS

We wanted to work on cellular automata, so, inspired by research on pattern formation observed in the true slime mold Physarum polycephalum ( Jones 2010), we decided to create an interactive simulation of this organism's fascinating behavior!

Instructions

How it works

Despite demonstrating a high capacity for cellular intelligence, the rules driving the slime mold (and their representations in our model) are actually quite simple! Following Jones' research, we modelled the behavior of Physarum polycephalum as follows:

Every slime mold particle has three sensors, pointing straight ahead, skewed to the left, and skewed to the right. A sensor detects the amount of chemoattractant in its target area.

A diagram.

Each slime mold particle begins by "sensing" for chemoattractants (evaluating the values of its different sensors). If the middle sensor detects the most chemoattractant among the three, the slime mold particle stays oriented in the same direction. If both the left and right sensors detect more chemoattractant than the middle sensor and both detect the same amount, the slime mold particle turns randomly. If the right sensor detects more chemoattractant than the middle sensor, the slime mold particle turns right. If the left sensor detects more chemoattractant than the middle sensor, the slime mold particle turns left. Then, the slime mold particle simply moves forward according to the direction specified by its sensors, according to some specified step size.

Finally, the slime mold particle deposits chemoattractants in the chemoattractant trail layer of the model, and those chemoattractants diffuse into the surrounding area and slowly decays as time goes on. Believe it or not, that's all you need to know to understand how this model functions!

Also feel free to take a look at this pre-rendered simulation that we ran on a larger canvas: