Jsfireworks
A realistic and interactive fireworks animation made using p5.js.
Install / Use
/learn @andrewdcampbell/JsfireworksREADME
p5.js Fireworks
An interactive fireworks animation made using p5.js.
See the live demo here.
<img src="https://github.com/andrewdcampbell/jsfireworks/blob/master/demo.png" height="450">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
sto mute the sound effects.
Acknowledgements
This was made for fun to get more familiar with javascript. The code is minimal and unoptimized. I used The Coding Train's coding challenge (video here) and Lars Gottlieb's sketch (demo here) as starting points. The sound effects are from soundsnap.com.
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
