home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / ANJAVA.ZIP / galaxy / galaxy.txt < prev    next >
Encoding:
Text File  |  1998-11-29  |  4.7 KB  |  111 lines

  1.  
  2.              Galaxy - Copyright (C) by F. Ciucci & A. Fasce 1998
  3.  
  4.  
  5. This applet can generate and animate a realtime "galaxy" effect.
  6. This applet is fully parametrized, so you can generate all kinds of
  7. galaxies.
  8.  
  9. The following 3 ".class" files must be uploaded: galaxy.class, Lware.class
  10. and anfy.class.
  11.  
  12. Insert the <applet> tag in your html document as follows to add this applet
  13. to your page (Comments after the ";" symbol are code explanations and
  14. acceptable min/max values. They are not part of the applet language):
  15.  
  16. <applet code="galaxy.class" width=320 height=200>  ; Name, Width, Height
  17. <param name=credits value="Applet by Andrea Fasce (www.anfyjava.com)">
  18. <param name=regcode value="NO">         ; Registration code (if you have it)
  19. <param name=reglink value="NO">         ; Optional URL link when the applet
  20.                                           is "clicked".
  21. <param name=regnewframe value="YES">      ; Reglink opened in new frame?
  22. <param name=regframename value="_blank">  ; Name of new frame for reglink
  23. <param name=statusmsg value="Galaxy applet">  ; Statusbar message
  24. <param name=particles value="5">           ; Particles mode (0..7)
  25. <param name=random value="0">              ; Random effect ("0"=no, "1"=yes)
  26. <param name=script value="1">              ; Script number (0 .. 11)
  27. <param name=gpalette value="0">            ; Palette (0 .. 5)
  28. <param name=persist value="6">             ; Persistence (0 .. 128)
  29. <param name=dinamic_persist value="0.0">   ; Dynamic pers. (0.0 .. 126.0)
  30. <param name=dinamic_min value="4">         ; Min. persistence (1 .. 127)
  31. <param name=dinamic_max value="16">        ; Max. persistence (1 .. 127)
  32. <param name=overimg value="NO">            ; Optional image over applet
  33. <param name=overimgX value="0">            ; Over image X offset
  34. <param name=overimgY value="0">            ; Over image Y offset
  35. <param name=memdelay value="1000">         ; Memory de-allocation delay
  36. <param name=priority value="3">            ; Task priority (1..10)
  37. <param name=fixnetscape value="NO">        ; Fix Netscape 3.0 bug ("YES","NO")
  38. <param name=MinSYNC value="10">            ; Min. milliseconds/frame for sync
  39. Sorry, your browser doesn't support Java.  ; Message for no java browsers.
  40. </applet>                                  ; End of applet tag
  41.  
  42.  
  43.                              ---------
  44.  
  45.  
  46. The following instructions detail how to change parameters:
  47.  
  48. Attempting to change the credits parameter will disable the applet.
  49.  
  50. To activate the reg parameters read the shareware registration notes.
  51. In the "regcode" parameter, place the registration code you
  52. purchased from the author. If the code is correct and the applet is run from
  53. the registered domain name, you can use "link" parameters to link to a URL
  54. when the applet is "clicked".
  55.  
  56. If you set "regnewframe" to "YES", you can specify a specific frame location
  57. for the reglink:
  58.  
  59. "_blank"  : To load the link in a new blank unnamed browser window.
  60. "_self"   : To load the link into the same window the applet occupies.
  61. "_parent" : To load the link into the immediate FRAMESET parent.
  62. "_top"    : To load the link into the top body of the window.
  63.  
  64. You can also set a custom frame name, such as "myframe1".
  65.  
  66. With the "overimg" parameter you can specify the name of an image that will
  67. be painted over the applet. The best options are transparent GIF images.
  68. NOTE: Animated GIF images are supported, but will be displayed as animated
  69. only on latest browsers (Netscape 4 and Explorer 4 or newer).
  70. With "overimgX" and "overimgY" you can center the image over the applet area.
  71.  
  72. The size of the applet is determined by the "width" and "height" tags.
  73.  
  74. With "particles" paramete you choose the particle mode, values from 0 to 7.
  75.  
  76. With "random" parameter set to "1" a random effect will be displayed, instead
  77. setting it to "0", will be displayed the effect selected by the "script"
  78. parameter (0 .. 11):
  79.  
  80.  0 - Circular Galaxy
  81.  1 - Sphere -> Ring
  82.  2 - Tubular Galaxy
  83.  3 - Spiral Galaxy
  84.  4 - Rotating System
  85.  5 - Into Sphere
  86.  6 - Supernova
  87.  7 - Sphere -> Tubular
  88.  8 - Wave -> Atom
  89.  9 - Cone -> Wave
  90.  10 - All effects one color
  91.  11 - All effects all colors
  92.  
  93.  
  94. With "gpalette" parameter (0 .. 5) you choose the colours of effect:
  95.  
  96.  0 = white
  97.  2 = red->black
  98.  1 = blue
  99.  3 = red->violet
  100.  4 = green
  101.  5 = red->white
  102.  
  103. You can enable the light persistence, setting "persist" to a value higher
  104. than 0. The max is 128, but the best results are arond 20.
  105.  
  106. You can set a persistence variation too, placing a value higher than 0.0 in
  107. the "dinamic_persist" parameter. It accepts float values: 0.5 , 1.3 etc.
  108. This value will be a "speed" of transition between the min and max persistence
  109. set with "dinamic_min" and "dinamic_max" parameters.
  110. Offcourse, min must be smaller than max!
  111.