theo-m / physarum

Physarum polycephalum slime mold simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Physarum Transport Networks

Web GUI fork

Need go installed, the websocket event are serialized with protobuf so need protoc installed and the codegen for javascript is bad for imports so needed to run the codegen through webpack. Run bash build.sh and then docker run -p 8080:8080 <build_hash>.

Bad gif demo (in the process of hosting the container somewhere to make it accessible): 1606767333

Left todo:

  • upload videos to a bucket and make them browsable with config search e.g. with routing /:hashOfConfig.
  • allow tweaking repulsion matrix (no idea how)

Example

This is a particle-based simulation inspired by the Physarum polycephalum slime mold.

Details about the algorithm can be found on Sage Jenson's excellent webpage:

https://sagejenson.com/physarum

The algorithm is surprisingly simple given how complex its outputs appear. That's the magic of generative algorithms!

Usage

go run cmd/physarum/main.go

Examples

Montage

About

Physarum polycephalum slime mold simulation

License:MIT License


Languages

Language:JavaScript 40.0%Language:Go 23.7%Language:Python 21.8%Language:HTML 13.8%Language:Shell 0.8%