This is a processing sketch that makes patterns with particles and a "pheromone" field.
I don't know how biologically close it is it ot but it seems to be commonly refered to as a physarum simulation.

Github page.



Video of the WIP program :



Video of the automaton with regularly randomized parameters: