Skip to content

a slime mold simulation in JS and WebGL

License

Notifications You must be signed in to change notification settings

xHayden/physarum

 
 

Repository files navigation

physarum

Interactive Demo of Modified Simulation

This particular fork is a modified version of a Physarum simulation by Nicolas Barradeau that can map over geographic terrain and use food sources for attraction. Analysis of the slime mold to demonstrate natural transport networks (pathfinding) can be found in the paper below.

Physarum for Effective Transport Networks (2022)

Example with pathfinding over Georgia (US State):

Georgia Demo Image

Original README:

inspired by this amazing work

implemented from this paper

you can try the demo click drag to draw, double click to create a disc with all the particles

the values:

  • SA and RA control the changes in direction ( Sensor Angle and Rotation Angle)
  • SO and SS are the look ahead distance and step size (speed) respectively.
  • radius controls the size of the particle stream when drawing
  • count controls the particle count when drawing

how to:

npm install

npm run dev

then build with

npm run deploy

sample images:

img0 img1 img2 img3 img4

About

a slime mold simulation in JS and WebGL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.9%
  • GLSL 24.6%
  • HTML 3.5%