When we consider that the “Medium is the Message“, much creative messaging has occurred in the evolution of computing. Today, there is a new generation of people brought up with new communications technology that use new faster computers to deliver a whole new message.
Now, when considering communication events for ‘winning’ with my figure model slot machine on my home page, I thought of a fireworks display. The physics for particle movement in three dimensional space are interesting. Animating fireworks in a web browser with HTML5 is the modern way. Fortunately, Paul Lewis has done the math and has had the creativity to put a realistic fireworks solution together. I have modified this work to automate the fireworks show.
Have a look. See the fireworks display.
And, if you want to try your luck, here is my slot machine. If you win, you get fireworks!
The fireworks code solution is documented on CreativeJS. I have added a new explosive shape to create a cluster effect and introduced a timer to automate the firework launch.
The other modification I made was to move the mouse events to the canvas and to automatically launch the fireworks. The code for this is sketched below.
My modified version of the original distribution can be downloaded as a zip file here. This includes the code revisions for automated launch of the fireworks and the multiple cluster explosion pattern described above.