1 stable release
Uses new Rust 2024
| 1.0.0 | May 16, 2025 |
|---|
#600 in Graphics APIs
2.5MB
3K
SLoC
Slime Mold
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.
Features
- Real-time GPU-accelerated simulation using WGPU
- Interactive parameter customization for slime behavior
- Multiple presets for different simulation patterns
- Custom LUT (Look-Up Table) support for color visualization
Quickstart
Run the simulation with cargo:
cargo run --release
Controls
The simulation can be controlled using the following keyboard shortcuts:
- Press
/to toggle help text - Press
Pto cycle presets (Shift+P for reverse) - Press
Cto clear trail map - Press
Gto cycle LUTs (Shift+G for reverse) - Hold
Tand use arrow keys to adjust turn speed - Hold
Jand use arrow keys to adjust jitter - Hold
Sand use arrow keys to adjust speed range - Hold
Aand use arrow keys to adjust sensor angle - Hold
Dand use arrow keys to adjust sensor distance - Hold
Rand use arrow keys to adjust pheromone deposition amount - Hold
Vand use arrow keys to adjust pheromone decay factor - Hold
Band use arrow keys to adjust pheromone diffusion rate - Hold
Nand use arrow keys to adjust agent count (1M/100K increments) - Hold
Shiftwith any of the above for fine adjustments
License
This project is open source and available under the MIT License.
Dependencies
~9–47MB
~767K SLoC