Skip to content

a96lex/physarum-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔬 Slime mold simulator

Instrumentalization of the generation of complex structures created by simple agents. Live version available here

❔ Introduction

Slime mold or is an informal name given to several kinds of unrelated eukaryotic organisms that can live freely as single cells, but can aggregate together to form multicellular reproductive structures. - Wikipedia

The goal of this project is to simulate the complex structures formed spontaneously by these organisms.

💫 Agents

The approach followed is the generation of numerous agents. An agent is a particle with a set behaviour.

In this simulation, agents will be randomly generated in a 2D space. They will leave a trail wherever they are. This trail will be diffused using a diffusion kernel, and will decay over time.

Agents will have a prefered direction depending on the amount of trail they sense in their vecinity.

Agents have these simple properties, which can be modified by the user at runtime:

  • Sensor distance: how far ahead the agent can sense its sorroundings
  • Sensor angle: how wide it's field of vision is
  • Turning angle: how strongly an agent can steer to its desired direction
  • Speed: how fast an agent can move
  • Deposit amount: how stronng the trail of the agent is

💻 Stack

This project has been developed using simple web technologies:

  • vanilla js for the simulation
  • HTML and css for UX/UI

:shipit: How to contribute

Your comments are always welcome. You can add them as Issues and I will have a look

However, if you wish to directly contribute to improve code quality or add features, you can also do so by forking the repository and sending a pull request.

📚 References

  • Sebastian League's video
  • Johshoff's code
  • Based on Jeff Jones's paper

About

Instrumentalization of a slime mold simulation made in vanila js, HTML and css. I deployed it to a public url for everyone to play with it.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors