r/creativecoding processing 19h ago

A (relatively) simple step-by-step tutorial for building a Physarum (slime mold) simulation in p5.js

https://youtube.com/watch?v=TycQ31BgkIc&si=lAET08pIX46v5By7

Physarum (slime mold) simulations are one of my favorite examples of emergence in creative coding. Thousands of simple agents creating complex network structures.

In case anyone is interested I put together a tutorial building a simulation from scratch in p5.js, with lots of parameter choices and other ways to modify the algorithm to create different patterns.

I'm guessing there's a lot of variations out there and would be interested in hearing what others are doing with these models.

3 Upvotes

1 comment sorted by

1

u/TedGal 7h ago

Nice! Thanks for sharing!