The Fireworks Applet 2.1

fingerprint
All Java code, images and text on this page are
© 1995-2005 Erik Wistrand
This page is supported by Jan Sparud and the Friends of Hinken.
See also the Valentine midlet if you want something cute for your phone.
If you just run out of words, try the Words applet, which I wrote for a very special person.

The fireworks applet displays a number of fireworks rockets and animates them according to a set of user definable attributes. If you're not using a Java-supporting browser, this page will be rather boring.

History
  • 1995 First version, hosted on www.cs.chalmers.se
    This was one of the first available applets, and made it to Sun's lists of applets "around the world". That lists consisted of about 20 applets at that time. The Fireworks applet was written with the current APIs of that time, meaning that some things like double buffering were simply not possible.
  • 1997, Spotfire period, hosted on www.spotfire.com
    Good luck, CA!
  • 1998 The wedding gift, hosted on www.crt.se
    As a wedding gift are all commercial rights to the Fireworks Java Applet transferred to Jonas and Lotta Helin as of June 27 1998
  • 1999 hosted on www.schlyter.pp.se
  • 2002 Some cleanup
    hosted on www.sparud.net

To use the fireworks applet yourself:

You may freely use the applet for non-commercial purposes as much as you like. If you plan to use it for commercial purposes, you should check with me (erik@wistrand.com) or the Helins (jonas_helin@hotmail.com) first.
Please mail me at erik@wistrand.com if you have any other questions or comments.

Get the complete Fireworks page + Java classes in one file

Save this file as fireworks.tgz, then unpack the .tgz file (with WinZip, gtar or any other program which handles gzipped, tarred files) into your WWW directory. If this works OK, you should get all needed classes and texts, including this one.

...or copy the source

The Fireworks Java source (v2.1) and compile it yourself

...or copy the precompiled JAR file

Please use your browser's "Save as..." function to retrieve this file Note that the above file should be the exact size as mentioned above, after download. If not, or you get an error like "Applet can't start. Error: Java.lang ClassFormatError", please retry loading after tweaking suitable options in your browser.

In your own www page, then add something like this

  <applet
   code="com.wistrand.applets.fireworks.Fireworks"
   archive="fireworks.jar"
   WIDTH=80 HEIGHT=200>
   <param name=ROCKETS     value="10">
   <param name=POINTS      value="20">
   <param name=LIFELENGTH  value="30">
   <param name=GRAV        value="180">
   <param name=DELAY       value="40">
   <param name=POINTSIZE   value="2">
   <param name=TRAIL       value="4">
   <param name=COLOR       value="000050">
  </applet>

Supported functions

mouseDown()
applet is restarted

Supported parameters

ROCKETS n
Number of rockets to animate (default 3)
POINTS n
Number of points in each rocket (default 3)
POINTSIZE n
Pixelsize of points (default 2)
LIFELENGTH n
Duration of rockets, counted in number of frames (default 100)
GRAV n
Gravity. Large value => rockets fall down fast (default 10)
DELAY n
Delay in milliseconds between frames (default 50)
(Warning: delay=0 consumes a lot of browser cpu time)
TRAIL n
Number of trailing points (default 10)
COLOR rrggbb
RGB hex triple for applet background (default browser background)
WIDTH n
Applet width in pixels (default tiny = browser default?)
HEIGHT n
Applet height in pixels (default tiny = browser default?)
BTW, yes, it's my fingerprint at the top of the page. I've forgotten which digit, though
Last modified Sep 2, 2003 by Erik Wistrand