Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

firework-rs

> 开发工具
Open source

A cross-platform ascii-art firework simulator in terminal

186 stars0 likes1 views
WebsiteGitHub

About

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!

Features

  • Colorful ASCII art firework
  • Smooth animation
  • Customizable fireworks
  • Simple particle system letting you make fireworks but not only fireworks

Try Out a Demo

Install rust if you havn't.

Then, simply run the following commands:

bash
git clone https://github.com/Wayoung7/firework-rs.git
cd firework-rs
cargo run --release -- -d 0

or to install globally on your computer:

cargo install firework-rs
firework -d 0

The binary now has 5 demos, from 0 to 4.

Exit

To exit the program, simply press ESC

Command Line Arguments

…

Example Commands

If you have installed the binary:

Infinite firework show with gradient enabled:

firework -g

Demo 1 with looping and gradient enabled:

firework -l -g -d 1

If you have not installed the binary:

First cd into the project root directory, and then run:

cargo run --release -- -g
cargo run --release -- -l -g -d 1

Use the Library

This 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_rs

in your project root directory.

To make a firework, you can simply use the following structure:

…

Examples

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

Compatibility

Operating System

This program can be run on Windows / Mac OS / Linux.

Terminal

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.

Help

Feel free to open an issue or contact me if you find any bugs.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustclifireworksrustsimulation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具