Multicellular Automata in p5
Spacebar to reset the sketch. Mouse over the canvas to disturb the cell states.
This is a parametric multiple neighborhood cellular automata. Each grid cell is updated using a function z = f(x,y), where x is the sum of immediate neighbors, y is the sum of single-offset neighbors, and z is the new cell state. In this example, the function is encoded in a tiny 61-parameter neural network.
This sketch is a great example of complex behaviour arising from simple rules.