Galaxy - Copyright (C) by F. Ciucci & A. Fasce 1998/99 This applet generates various kinds of realtime "galaxy" effects. ************************************************************************* NECESSARY FILES. Apart from an optional overlay image, the following 3 ".class" files must be uploaded: galaxy.class Lware.class anfy.class Plus, galaxy.jar for speedy loading on recent browsers. ************************************************************************* EXAMPLE. Insert the tag in your html document as follows to add this applet to your page (Comments after the ";" symbol are code descriptions and acceptable min/max values. They are not part of the applet language): ; Registration code (if you have it) ; Optional URL link when the applet is "clicked". ; Reglink opened in new frame? ; Name of new frame for reglink ; Statusbar message ; Particles mode (0..7) ; Random effect ("0"=no, "1"=yes) ; Script number (0 .. 11) ; Palette (0 .. 5) ; Persistence (0 .. 128) ; Dynamic pers. (0.0 .. 126.0) ; Min. persistence (1 .. 127) ; Max. persistence (1 .. 127) ; Optional image over applet ; Over image X offset ; Over image Y offset ; Memory de-allocation delay ; Task priority (1..10) ; Fix Netscape 3.0 bug ("YES","NO") ; Min. milliseconds/frame for sync Sorry, your browser doesn't support Java. ; Message for no java browsers. ; End of applet tag ************************************************************************** INSTRUCTIONS. The following instructions describe how to change parameters: Attempting to change the credits parameter will disable the applet. To activate the reg parameters read the shareware registration notes. In the "regcode" parameter, place the registration code you purchased from the author. If the code is correct and the applet is run from the registered domain name, you can use "link" parameters to link to a URL when the applet is mouse-clicked. If you set "regnewframe" to "YES", you can specify a specific frame location for the reglink: "_blank" : To load the link in a new blank unnamed browser window. "_self" : To load the link into the same window the applet occupies. "_parent" : To load the link into the immediate FRAMESET parent. "_top" : To load the link into the top body of the window. You can also set a custom frame name, such as "myframe1". With the "overimg" parameter you can specify the name of an image that will be painted over the applet. The best options are transparent GIF images. NOTE: Animated GIF images are supported, but will be animated only on latest browsers (Netscape 4 and Explorer 4 or newer). With "overimgX" and "overimgY" you can center the image over the applet area. The size of the applet is determined by the "width" and "height" tags. With "particles" parameter you choose the particle mode from values from 0 to 7. With "random" parameter set to "1", a random effect will be displayed. If you instead set it to "0", the effect selected by the "script" parameter will be displayed. Here are the abailable "script" parameter values: 0 - Circular Galaxy 1 - Sphere -> Ring 2 - Tubular Galaxy 3 - Spiral Galaxy 4 - Rotating System 5 - Into Sphere 6 - Supernova 7 - Sphere -> Tubular 8 - Wave -> Atom 9 - Cone -> Wave 10 - All effects one color 11 - All effects all colors With "gpalette" parameter (0 .. 5), you choose the palette of a galaxy: 0 = white 1 = blue 2 = red->black 3 = red->violet 4 = green 5 = red->white You can enable the light persistence, setting "persist" to a value higher than 0. The max is 128, but the best results are arond 20. You can set a persistence variation too, placing a value higher than 0.0 in the "dinamic_persist" parameter. It accepts float values: 0.5 , 1.3 etc. This value will be a "speed" of transition between the min and max persistence set with "dinamic_min" and "dinamic_max" parameters. Of course, min must be smaller than max!