Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucascompython/particles
https://github.com/lucascompython/particles
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lucascompython/particles
- Owner: lucascompython
- License: gpl-3.0
- Created: 2024-01-05T23:09:15.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-22T23:48:20.000Z (9 months ago)
- Last Synced: 2024-03-23T20:34:24.627Z (9 months ago)
- Language: Rust
- Size: 162 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Particle Attraction/Repulsion
This is a satisfying "simulation" of particles that attract and repel to the mouse. It's not really a simulation, but it looks cool.
Keybindings:
- `R`: reset the particles
- `SPACE/M1 Click`: toggle the mouse attraction/repulsion
- `B`: toggle the screen border collision
- `Arrow Keys (Up/Down/Left/Right)`: Add/Remove 1/1/100/100 particles
- `J/K`: decrease/increase the multipler
- `+/-`: increase/decrease ball size
- `ESC`: quitMore options with ./particles --help
## Demo
https://github.com/lucascompython/particles/assets/77930083/ee3eb461-5a3a-4dbc-801a-0812c62102f9
## Compilation
Install raylib on your system, then adjust the [build.rs](/build.rs) file to point to the raylib library.
Then, just run `cargo build --release` to compile.
I will maybe add Android and Web support in the future.## TODO
- [ ] Add Android support
- [ ] Add Web support
- [ ] Add a GUI