Slime Molds (Physarum)

πŸ”— Code Example: Slime Molds (Physarum)

πŸ”— References:

πŸ”— Timestamps:

  • 0:10 What is a slime mold?

  • 1:16 Algorithm and approach

  • 2:20 Create a Mold class

  • 7:00 Create sensor variables

  • 12:19 Explain how pixels array work and how to extract color values from it

  • 19:16 Use pixels array to get sensing data from canvas

  • 21:41 Compare sensors' values to determine direction to rotate

  • 26:20 Use alpha value to diffuse trail map

  • 31:02 Use modulo (%) to wrap around values

Previous

Egg-phabet 🍳

Next

Game of Life Clock