home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / PC / data1.cab / Program_Files / Applet / fire / fire.txt < prev    next >
Encoding:
Text File  |  1999-07-08  |  5.5 KB  |  124 lines

  1.  
  2.             AnfyFire - Copyright (C) by Fabio Ciucci 1996-99
  3.  
  4.  
  5. This applet can generate and animate a realtime "fire" effect. This applet
  6.  is fully parametrized, so you can generate various kinds of fire effects.
  7.  
  8. **************************************************************************
  9.  
  10. NECESSARY FILES.
  11.  
  12. Apart from an optional foreground image, the following 3 ".class" files must
  13.  be uploaded: 
  14.  
  15. fire.class
  16. Lware.class
  17. anfy.class
  18.  
  19. Plus, fire.jar for speedy loading on recent browsers.
  20.  
  21. *************************************************************************
  22.  
  23. EXAMPLE.
  24.  
  25. Insert the <applet> tag in your html document as follows to add this applet
  26. to your page (Comments after the ";" symbol are code explanations and
  27. acceptable min/max values. They are not part of the applet language):
  28.  
  29. <applet archive="fire.jar" code="fire.class" width="140" height="256">
  30. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  31. <param name="regcode" value="NO">         ; Registration code (if you have it)
  32. <param name="reglink" value="NO">         ; Optional URL link when applet
  33.                                           is "clicked".
  34. <param name="regnewframe" value="YES">    ; Reglink opened in new frame?
  35. <param name="regframename" value="_blank">     ; Name of new frame for reglink
  36. <param name="statusmsg" value="Fire applet">   ; Statusbar message
  37. <param name="fwidth" value="70">               ; width (1-1024)
  38. <param name="fheigth" value="64">              ; height (1-1024)
  39. <param name="resx" value="2">                  ; horizontal resolution (1-8)
  40. <param name="resy" value="4">                  ; vertical resolution (1-8)
  41. <param name="fcut" value="7">                  ; fire cut start position (1-127)
  42. <param name="fsub" value="4">                  ; fire cut value position (1-127)
  43. <param name="deflight" value="30">          ; minimal lightning at base (0-127)
  44. <param name="fmode" value="2">              ; fire mode (1=rectangle 2=convex)
  45. <param name="rndrep" value="4">             ; random gen. repeating (1-9)
  46. <param name="paletteR" value="5">           ; red value (0-8)
  47. <param name="paletteG" value="3">           ; green value (0-8)
  48. <param name="paletteB" value="1">           ; blue value (0-8)
  49. <param name="overimg" value="NO">           ; Optional image over the applet
  50. <param name="overimgX" value="0">           ; Over image X offset
  51. <param name="overimgY" value="0">           ; Over image Y offset
  52. <param name="memdelay" value="1000">        ; Memory deallocation delay
  53. <param name="priority" value="3">           ; Task priority (1..10)
  54. <param name="fixnetscape" value="NO">       ; Fix Netscape 3.0 bug ("YES","NO")
  55. <param name="MinSYNC" value="10">           ; Min. milliseconds/frame for sync
  56. Sorry, your browser doesn't support Java. ; Message for no java browsers.
  57. </applet>                                 ; End of applet tag
  58.  
  59.  
  60. *****************************************************************************
  61.  
  62. INSTRUCTIONS.
  63.  
  64. The following instructions describe how to change the parameters:
  65.  
  66. Attempting to change the credits parameter will disable the applet.
  67.  
  68. To activate the reg parameters read the shareware registration notes.
  69. In the "regcode" parameter, place the registration code you purchased
  70.  from the author. If the code is correct and the applet is run from the
  71.  registered domain name, you can use "link" parameters to link to a URL
  72. when the applet is "clicked".
  73.  
  74. If you set "regnewframe" to "YES", you can specify a specific frame location
  75. for the reglink:
  76.  
  77. "_blank"  : To load the link in a new blank unnamed browser window.
  78. "_self"   : To load the link into the same window the applet occupies.
  79. "_parent" : To load the link into the immediate FRAMESET parent.
  80. "_top"    : To load the link into the top body of the window.
  81.  
  82. You can also set a custom frame name, such as "myframe1".
  83.  
  84. With the "overimg" parameter you can specify the name of an image that will
  85. be painted over the applet. The best options are transparent GIF images.
  86.  
  87. NOTE: Animated GIF images are supported, but will be animated only on 
  88. latest browsers (Netscape 4 and Explorer 4 or newer).
  89.  
  90. With "overimgX" and "overimgY" you can center the image over the applet area.
  91.  
  92. The parameters "fwidth" and "fheight" determine the "internal" width and
  93. heigth of the fire, but will be identical to the "real" size only if resx=1 
  94. and resy=1.
  95.  
  96. In fact, resx and resy are sort of "scalers", "zoomers", or "stretchers",
  97. so to speak: if fwidth and fheigth are set to 8 and 10, and resx=2 & resy=2,
  98. you will have a "real" size of 16 x 20. The real size is fwidth*resx X
  99. pheight*resy.
  100.  
  101. This effect looks nicer when resy is greater than resx.
  102.  
  103. Regarding the fire cutting values, fcut and fsub: fcut must be higher
  104. than fsub, and some values will generate wrong effects. Optimum range
  105.  is 1-127.
  106.  
  107. The deflight (0-127) determines the minimal light at the base of fire. 
  108. With the value of 0, the fire will have more black holes than the fire of 
  109. the value 127.
  110.  
  111. If you like the fire as a rectangular block, set fmode=1. If you like the
  112. fire as a convex (conical) flame, set it to 2.
  113.  
  114. You can determine the smoothing of random generator with rndrep (1-9). 
  115. With lower values you will have less smoothed flames, and vice versa.
  116.  
  117. In the palette, there are 3 valuables for Red Green Blue (RGB). Each of 
  118. them can take a value from 0 (none) to 8 (full), and they are named 
  119. paletteR, paletteG, paletteB.
  120.  
  121. You can generate red (fire), green (magic), blue (gas) flames... there
  122. are 700 combinations possible.
  123.  
  124.