A cross-platform ascii-art firework simulator in terminal
A cross-platform ascii-art firework simulator in terminal
Firework-rs
Firework-rs is a cross-platform ascii-art firework simulator in terminal. Run the binary or use the library to create your own firework, and just enjoy the beautiful fireworks in your terminal!
Install rust if you havn't.
Then, simply run the following commands:
git clone https://github.com/Wayoung7/firework-rs.git
cd firework-rs
cargo run --release -- -d 0or to install globally on your computer:
cargo install firework-rs
firework -d 0The binary now has 5 demos, from 0 to 4.
To exit the program, simply press ESC
…If you have installed the binary:
Infinite firework show with gradient enabled:
firework -gDemo 1 with looping and gradient enabled:
firework -l -g -d 1If you have not installed the binary:
First cd into the project root directory, and then run:
cargo run --release -- -gcargo run --release -- -l -g -d 1This package not only has a demo binary for you to enjoy terminal fireworks, but also provides you with a simple library firework_rs to play with your own fireworks.
To add this crate to your rust project, run:
cargo add firework_rsin your project root directory.
To make a firework, you can simply use the following structure:
…The package provide several examples under examples/ showing some features of the library, and give you some inspiration.
To run examples, cd into the this project directory, and simply type:
cargo run --example Example-name contains:
fountain
vortex
heart
This program can be run on Windows / Mac OS / Linux.
This crate uses crossterm as backend. Terminals that crossterm supports will also be supported by this crate.
This crate supports all UNIX terminals and Windows terminals down to Windows 7. however, not all of the terminals have been tested and has good viusal quality.
It is recommanded to use terminal that has GPU rendering acceleration, like Kitty and Alacritty. Make sure your terminal does not have extra color theme or adjustment. If you enable gradient in the program, make sure the terminal window is non-transparent and has black background.
Feel free to open an issue or contact me if you find any bugs.
No open issues yet, or sync has not completed.