Skip to content

A realistic and interactive fireworks animation made using p5.js.

License

Notifications You must be signed in to change notification settings

chrisjm/jsfireworks

 
 

Repository files navigation

p5.js Fireworks 🎆

Interactive Fireworks Animation Using p5.js

See the live demo here.

There are eight different kinds of shells. They randomly fire off in an infinite loop.

Interaction

  • Click anywhere for a firework to explode at that mouse position.
  • Click and drag for a stream of fireworks to explode. Note that the animation may lag with several fireworks on screen.
  • Press the spacebar to pause the fireworks.
  • Press s to mute the sound effects.

Acknowledgements

This was coded for fun during New Years Eve 2020.

It started with watching The Coding Train's coding challenge (video here). Then I forked @andrewdcampbell's implementation. The sound effects are from soundsnap.com.

About

A realistic and interactive fireworks animation made using p5.js.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 83.1%
  • HTML 16.9%