home *** CD-ROM | disk | FTP | other *** search
-
- Galaxy - Copyright (C) by F. Ciucci & A. Fasce 1998
-
-
- 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 <applet> 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):
-
- <applet code="galaxy.class" width=320 height=200> ; Name, Width, Height
- <param name=credits value="Applet by Andrea Fasce (www.anfyjava.com)">
- <param name=regcode value="NO"> ; Registration code (if you have it)
- <param name=reglink value="NO"> ; Optional URL link when the applet
- is "clicked".
- <param name=regnewframe value="YES"> ; Reglink opened in new frame?
- <param name=regframename value="_blank"> ; Name of new frame for reglink
- <param name=statusmsg value="Galaxy applet"> ; Statusbar message
- <param name=particles value="5"> ; Particles mode (0..7)
- <param name=random value="0"> ; Random effect ("0"=no, "1"=yes)
- <param name=script value="1"> ; Script number (0 .. 11)
- <param name=gpalette value="0"> ; Palette (0 .. 5)
- <param name=persist value="6"> ; Persistence (0 .. 128)
- <param name=dinamic_persist value="0.0"> ; Dynamic pers. (0.0 .. 126.0)
- <param name=dinamic_min value="4"> ; Min. persistence (1 .. 127)
- <param name=dinamic_max value="16"> ; Max. persistence (1 .. 127)
- <param name=overimg value="NO"> ; Optional image over applet
- <param name=overimgX value="0"> ; Over image X offset
- <param name=overimgY value="0"> ; Over image Y offset
- <param name=memdelay value="1000"> ; Memory de-allocation delay
- <param name=priority value="3"> ; Task priority (1..10)
- <param name=fixnetscape value="NO"> ; Fix Netscape 3.0 bug ("YES","NO")
- <param name=MinSYNC value="10"> ; Min. milliseconds/frame for sync
- Sorry, your browser doesn't support Java. ; Message for no java browsers.
- </applet> ; 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!
-