fnky / particle-life-rs

Particle Life implemented in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particle Life in Rust

An implementation of Particle Life written in Rust.

Originally based on HackerPoet's C++ implementation.

Disclaimer: The code is not optimized and not very "Rust-y" as I'm just using this project to learn Rust. I won't be able to review and accept all pull requests, but don't let that stop you from contributing to the project.

Building

To run the project in debug mode, run

cargo run

Keep in mind that this will run at a low performance, especially with multiple steps per frame, as only a few optimizations are made.

If you only care about checking out the demo itself, you can also build in release mode:

cargo run --release

Keyboard shortcuts

  • Left/Right – Change the simulation preset.
  • Space – Hold to simulate multiple steps per frame.

Screenshot

Screenshot

About

Particle Life implemented in Rust

License:MIT License


Languages

Language:Rust 100.0%