https://github.com/zpg6/particlez
A toy particle system written in Rust with crossterm, maybe useful for TUI applications.
https://github.com/zpg6/particlez
Last synced: 10 months ago
JSON representation
A toy particle system written in Rust with crossterm, maybe useful for TUI applications.
- Host: GitHub
- URL: https://github.com/zpg6/particlez
- Owner: zpg6
- License: mit
- Created: 2024-07-08T11:08:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T14:23:07.000Z (over 1 year ago)
- Last Synced: 2025-03-27T02:27:53.875Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 3.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# particlez
A toy particle system written in Rust with `crossterm`, maybe useful for TUI applications.
## Examples
#### Fall to Floor
Uses `ParticleBoundsHandling::Stop` and displays particle based on its velocity. Particles hit the floor and appear to flatten.
```
cargo run --example fall_to_floor
```

#### Rainfall
Uses `ParticleBoundsHandling::Wrap` and displays particle based on its velocity. Raindrops moving faster look "thinner" and raindrops moving slower are more rounded.
```
cargo run --example rainfall
```

#### Bugs Crawl
Uses `ParticleBoundsHandling::Wrap` and `ParticleMovement::RandomSomeDirection` to simulate bugs crawling.
```
cargo run --example bugs_crawl
```

#### Spaceflight
Uses `ParticleBoundsHandling::Wrap` and varying `ParticleMovement::ConstantVelocity` to simulate smoothly passing objects in space, some near and some far in the distance.
```
cargo run --example spaceflight
```

## Changelog
| Date | Version | Description |
| ---------- | ------- | ------------------------------------ |
| 2024-07-08 | 0.0.1 | Supports minimal animation examples. |