## Fireworks

Here's pretty simulation of fireworks exploding using some trigonometry. This applet is rather large, so I put it on a separate page. Also, you need a fairly high resolution to view the whole applet on your screen, so I apologize in advance if this one is a pain to look at.

Launch shells by clicking on the type of shell you wish to launch in the list at the bottom of the applet and move the launch slider to something greater than 0. You can select multiple types of shells by holding down the shift key and clicking on the shells you want.

As I said all the patterns for each type of shell are mathematically calculated with trigonometry and some such craziness. At some point I'll document the math used for each shell.

Click Here to run the fireworks applet.

### Types of Shells

- Circle - produces a circle pattern
- Sphere - produces a sphere pattern
- Starfish - produces a pattern that vaguely looks like a starfish
- Heart - produces a pattern that is supposed to be a heart, but looks kind of like an elephant
- Ring - like the circle shell, but rotated to different angles
- Streamer - a simple sphere shell that leaves a trail
- Spiral - produces a spiral pattern
- Atom - produces a pattern that looks vaguely like an atom
- MultiShell - explodes into five other types of shells shot randomly out
- MultiArcShell - explodes into five other types of shells shot out in an arc pattern