home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 October / PCO1097.ISO / FilesBBS / FREI / ANJAVAPP.EXE / FLUID / fluid.txt < prev    next >
Encoding:
Text File  |  1997-08-24  |  9.3 KB  |  228 lines

  1.  
  2.           Anfy Fluid 2.0 - Copyright (C) by Fabio Ciucci 1997
  3.  
  4.  
  5. This applet can simulate fluid wavings.
  6. Remember that are needed both flud.class and Lware.class.
  7. You must upload these 2 .class files and insert the <applet> tag on your
  8. html document to add this applet to your page.
  9. This applet is fully parametrized, so you can generate all kinds of fluids
  10. you want. Here an example of what you have to write in the html (the
  11. things anfter the ; are comments with min-max values acceptet):
  12.  
  13.  
  14. <applet code="fluid.class" width=200 height=200> ; Name, Width, Height
  15. <param name=res value="1">              ; resolution (1 .. 8)
  16. <param name=autodesign value="YES">     ; Auto design ("YES" or "NO")
  17. <param name=density value="4">          ; Density of fluid (2 .. 6)
  18. <param name=fishnum value="0">          ; Number of fishes (0 .. 2)
  19. <param name=rainsize value="0">         ; Size of circular rain (0 = OFF)
  20. <param name=rainfactor value="10">      ; Circular rain factor
  21. <param name=srainsize value="0">        ; Size of square rain (0 = OFF)
  22. <param name=srainfactor value="10">     ; Square rain factor
  23. <param name=volcano value="NO">         ; Volcano's magma mode (YES, NO)
  24. <param name=textscroll value="fluidscr.txt"> ; File for scrolltext or "NO"
  25. <param name=textoffset value="140">          ; Txtscroll y offset
  26. <param name=textspeed value="1">          ; Txtscroll speed
  27. <param name=textfont value="Arial">       ; Txtscroll font name
  28. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  29. <param name=textsize value="24">          ; Txtscroll font size
  30. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  31. <param name=TextColR value="200">         ; Txtscroll color (red component)
  32. <param name=TextColG value="255">         ; Txtscroll color (green component)
  33. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  34. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  35. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  36. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  37. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  38. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  39. <param name=memdelay value="1000">        ; Memory deallocation delay
  40. <param name=priority value="3">           ; Task priority (1..10)
  41. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  42. </applet>                                 ; End of applet tag
  43.  
  44.  
  45. NOTE: Don't place "; comments" on final HTML!!!
  46.  
  47. Copy and paste in your html document this cleared and correct tag:
  48.  
  49.  
  50. <applet code="fluid.class" width=200 height=200>
  51. <param name=res value="1">
  52. <param name=autodesign value="YES">
  53. <param name=density value="4">
  54. <param name=fishnum value="0">
  55. <param name=rainsize value="0">
  56. <param name=rainfactor value="10">
  57. <param name=srainsize value="0">
  58. <param name=srainfactor value="10">
  59. <param name=volcano value="NO">
  60. <param name=textscroll value="fluidscr.txt">
  61. <param name=textoffset value="40">
  62. <param name=textspeed value="2">
  63. <param name=textfont value="Courier">
  64. <param name=textbold value="YES">
  65. <param name=textsize value="18">
  66. <param name=textshadow value="YES">
  67. <param name=TextColR value="250">
  68. <param name=TextColG value="200">
  69. <param name=TextColB value="90">
  70. <param name=TextSColR value="20">
  71. <param name=TextSColG value="20">
  72. <param name=TextSColB value="50">
  73. <param name=TextJumpAmp value="10">
  74. <param name=TextJumpSpd value="10">
  75. <param name=memdelay value="1000">
  76. <param name=priority value="3">
  77. Sorry, your browser doesn't suppor Java.
  78. </applet>
  79.  
  80.                              ---------
  81.  
  82.  
  83. Here detailed instructions about how to change parameters:
  84.  
  85.  
  86. The height for good results must be 200. You can change the width.
  87. res is a sort of zoomer.
  88.  
  89. If you set to "YES" the "autodesign" parameter, an automatic slideshow of the
  90. effects will be executed, and next parameters are ignored.
  91.  
  92. If you set to "NO" the autodesign, you have to configure effects manually:
  93.  
  94. The "density" parameter (2 .. 6) controls the density if fluid. Lower values
  95. mean more fluid liquid, so waves dead fast. Higher walues cause a slower
  96. decadence of the waves.
  97.  
  98. You can insert up to 2 fishes, with "fishnum" parameter.
  99.  
  100. Other effects are: rain and srain.
  101.  
  102. Set the parameter "rainsize" to more than 0 to activate the circular rain.
  103. The "rainfactor" parameter works as "timer" between one drip and another.
  104. Setting "rainfactor" to 0, a new drip will appear every frame.
  105. Higher values mean more distance between one drip and another.
  106.  
  107. The "srainsize" will determine a square rain. If it is set to zero, no
  108. rain. Values higher or equals to 1 will generate rain.
  109. To control it use "srainfactor" as seen for "rainfactor".
  110.  
  111. You can enable more than one effect at the same time.
  112. The "volcano" parameter, if set to "YES" transform the water in lavic magma,
  113. for infernal ambientations.
  114.  
  115.  
  116.                              ---------
  117.  
  118.  
  119. Optional Scrolltext parameters:
  120.  
  121.  
  122. You can optionally activate a scrolltext that will scroll over the applet.
  123. If you don't need the scrolltext, deactivate it placing "NO" at the
  124. "textscroll" parameter.
  125. Otherwise you must supply the name of an ASCII text file, where you must
  126. write the text that you want to be scrolled.
  127. Is supported one only line of text, that can be long as you want.
  128. Remember to upload the text file too, if you activate the scrolltext!
  129.  
  130. If activated, here are the parameters:
  131.  
  132. With "textoffset" you choose the Y offset from the top: placing it to 0 the
  133. scroll will be placed on the top, for example, and placing a value near the
  134. height of the applet it will scroll at the bottom.
  135.  
  136. With "textspeed" parameter you decide the scrolling speed.
  137.  
  138. With "textfont" you choose the font of text. Don't choose a strange or not
  139. standard font, not present in all systems.
  140. The most common fonts are "Arial", "TimesRoman" and "Courier".
  141. If the required font is not present, the most "near" will be used.
  142.  
  143. Setting "textbold" to "YES" you will enlarge a bit the font, otherwise set
  144. it to "NO" for normal contours.
  145.  
  146. With "textsize" you can change the size of text font.
  147. The most common sizes are: 8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72.
  148. Intermediate values will be scaled to nearest available size.
  149.  
  150. Setting "textshadow" to "YES", a shadow will be added to textscroll.
  151. Otherwise, setting it to "NO", any shadow will be "projected".
  152.  
  153. You can choose the color of text with:
  154.  
  155. TextColR = Red component of color (0-255)
  156. TextColG = Green component of color (0-255)
  157. TextColB = Blue component of color (0-255)
  158.  
  159. For example, 0,0,0 is black, 255,255,255 is white, 255,0,0 is red,
  160. 255,255,0 is yellow, 128,128,128 is grey.
  161. You can compose any color you want, do it trying manually or use any paint
  162. program's color selector to find Red Green Blue components of your desired
  163. colors.
  164.  
  165. With TextSColR,TextSColG,TextSColB you can select the color for text shadow.
  166.  
  167. If you like, you can activate the text jumping function.
  168. If "TextJumpAmp" is set to "0", any jumping will be shown.
  169. But increasing the value will result in text jumping: more aplitute, more
  170. high jumps.
  171.  
  172. With "TextJumpSpd" parameter you can select the jumping speed.
  173.  
  174.  
  175.                              ---------
  176.  
  177.  
  178. Compatibility parameters:
  179.  
  180.  
  181. The "memdelay" parameter is useful only to run the applets without problems
  182. on some bugged versions of Netscape 3, that don't deallocate correctly
  183. the memory allocated, resulting in filling all the memory after a minute
  184. the applet is running. This can cause also a system crash in some cases.
  185. Last versions of browsers have fixed this problem, but if you want to run
  186. the applets on old bugged browsers too, set "memdelay" to low values, like
  187. "10" or "16", for example.
  188. But this will slow down a lot the applet speed, so you have to choose
  189. between speed (memdelay set to 1000 or higher) or slow compatibility with
  190. old browsers (memdelay set to 20 or lower).
  191.  
  192. The "priority" parameter is useful mainly when you are running more than
  193. one applet in same page, and one slows down or hangs.
  194. If this applet run too slow or hangs because other one steal all the CPU
  195. power, try increasing the priority.
  196. Otherwise, if this applet runs well and others slows down, decrease the
  197. priority. Consider the min priority is 1, normal priority is 5, and the
  198. max priority is 10. Usually a priority of 3 is ok for single applets.
  199.  
  200.  
  201.                              ---------
  202.  
  203.  
  204. Copyright and distribution notices
  205.  
  206.  
  207. Fabio Ciucci is the author and owner of this applet.
  208. You can use freely this applet to enhance your web pages. But since I am
  209. the author of the applet, I placed a secret window that will appear if the
  210. applet is clicked with mouse: it is external to the web browser, so it will
  211. not hit the design of your beautyful html page. This small window will
  212. simply show my name and ask for a link to my java applets page.. the user
  213. can connect to it or cancel, or hide the window and connect after visiting
  214. all your pages. I hope this credit part is not a problem for you...
  215. In any case, if link is accepted a new browser window will appear and your
  216. page will remain on the original window, so you will not lost the visitor.
  217. Consider you will use an effect programmed by me, without pay, for FREE!
  218.  
  219.  
  220.  
  221. Fabio Ciucci (Randy/Ram Jam)
  222.  
  223. fabioc@anfiteatro.it
  224.  
  225. http://www.anfiteatro.it/java.html
  226.  
  227.  
  228.