Skip to content

Corg-Labs/Particle-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Particle Fountain

Particle fountain / fireworks in the terminal, in C.

A small, self-contained demo written in pure C — no external libraries, just the standard library and POSIX. Part of the Corg-Labs collection of single-file C programs.


How It Works

  1. Particles spawn at the base with an upward random velocity
  2. Gravity accelerates each particle every frame
  3. A life value fades the particle's character over time
  4. Dead particles are recycled for new emissions

Build

gcc fountain.c -o fountain -lm

Run

./fountain

Controls

Press Ctrl-C to quit.

About

► Particle fountain/fireworks simulation in C.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages