Galaxy - Copyright (C) by F. Ciucci & A. Fasce 1998 ­TÃf http://www.geocities.com/Vienna/Choir/4659/ This applet can generate and animate a realtime "galaxy" effect. This applet is fully parametrized, so you can generate all kinds of galaxies. The following 3 ".class" files must be uploaded: galaxy.class, Lware.class and anfy.class. Insert the tag in your html document as follows to add this applet to your page (Comments after the ";" symbol are code explanations and acceptable min/max values. They are not part of the applet language): ; Name, Width, Height ; 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 --------- The following instructions detail 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 "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 displayed as 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" paramete you choose the particle mode, values from 0 to 7. With "random" parameter set to "1" a random effect will be displayed, instead setting it to "0", will be displayed the effect selected by the "script" parameter (0 .. 11): 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 colours of effect: 0 = white 2 = red->black 1 = blue 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. Offcourse, min must be smaller than max!