| Crates.io | slime-mold |
| lib.rs | slime-mold |
| version | 1.0.0 |
| created_at | 2025-05-16 13:38:19.078038+00 |
| updated_at | 2025-05-16 13:38:19.078038+00 |
| description | A simulation of slime mold |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1676470 |
| size | 2,868,067 |
A GPU-accelerated slime mold simulation written in Rust using WGPU. This project simulates the emergent behavior of slime mold colonies using compute shaders. It supports millions of agents on modern hardware.
Run the simulation with cargo:
cargo run --release
The simulation can be controlled using the following keyboard shortcuts:
/ to toggle help textP to cycle presets (Shift+P for reverse)C to clear trail mapG to cycle LUTs (Shift+G for reverse)T and use arrow keys to adjust turn speedJ and use arrow keys to adjust jitterS and use arrow keys to adjust speed rangeA and use arrow keys to adjust sensor angleD and use arrow keys to adjust sensor distanceR and use arrow keys to adjust pheromone deposition amountV and use arrow keys to adjust pheromone decay factorB and use arrow keys to adjust pheromone diffusion rateN and use arrow keys to adjust agent count (1M/100K increments)Shift with any of the above for fine adjustmentsThis project is open source and available under the MIT License.