/slime-mold

A simulation of Slime Mold for in WebGL and GLSL Shaders for CS420X

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Slime Mold: CS420X Assignment 3

Slime Mold (physarum) simulation. Based on this blog post and this paper. Inspiration for the implementation was sourced from this blog post.

Demo

If you get poor performance with the demo, shrink your window and/or zoom in. This shader renders about 622k particles on a 1080p screen, so performance can suffer on some systems.

Image of the simulation

Controls

Parameters of the simulation, which are described in the paper, can be adjusted in a GUI within the simulation. Further, dragging within the simulation will "disturb" the mold, allowing you to cut through it. Holding shift while you do this will bring some mold closer to your cursor.

Installation

To run the development server, run.

npm install
npm start

If you just wish to build the static files and host this on your own webserver, you can run

npm run-script build