Skip to content
/ particlez Public

A toy particle system written in Rust with crossterm, maybe useful for TUI applications.

License

Notifications You must be signed in to change notification settings

zpg6/particlez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

rainfall

Bugs Crawl

Uses ParticleBoundsHandling::Wrap and ParticleMovement::RandomSomeDirection to simulate bugs crawling.

cargo run --example bugs_crawl

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

spaceflight

Changelog

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

About

A toy particle system written in Rust with crossterm, maybe useful for TUI applications.

Resources

License

Stars

Watchers

Forks

Languages