ruscoe / fireworks

:fireworks: A little C program you can use to create your own mini firework display.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fireworks

A little C program you can use to create your own mini firework display. Requires Xlib.

Only tested on Ubuntu 21.10, but should work anywhere Xlib does.

Usage

Compile and run:

gcc -o fireworks fireworks.c -lX11
./fireworks

fireworks

Click anywhere to generate a firework. Click multiple times for a pretty firework.

Customization

Add colors

Add as many colors as you like by adding the hex value to char colors. Use only six character hex strings; no alpha channel.

Adjust firework behavior

Adjust the values in the createFirework function to adjust firework speed and expansion rate.

License

MIT. Do whatever you want.

Please send questions and comments to danruscoe@protonmail.com

Have fun!

About

:fireworks: A little C program you can use to create your own mini firework display.


Languages

Language:C 100.0%