home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 October / PCO1097.ISO / FilesBBS / FREI / ANJAVAPP.EXE / BLOBS / blobs.txt < prev    next >
Encoding:
Text File  |  1997-08-22  |  9.7 KB  |  233 lines

  1.  
  2.           AnfyBlobs 2.0 - Copyright (C) by Fabio Ciucci 1996/97
  3.  
  4.  
  5. This applet can generate and animate a realtime "blobs" effect, a sort
  6. of "light interference" between lightballs.
  7. Remember, are needed: blob.class, blobs.class and Lware.class.
  8. You must upload these 3 .class files and insert the <applet> tag on your
  9. html document to add this applet to your page.
  10. This applet is fully parametrized, so you can generate all kinds of blobs
  11. you want. Here an example of what you have to write in the html (the
  12. things anfter the ; are comments with min-max values acceptet):
  13.  
  14.  
  15. <applet code="blobs.class" width=180 height=140>  ; Name, Width, Height
  16. <param name=res value="2">                ; resolution (1-8)
  17. <param name=nblobs value="4">             ; number of blobs (2-8)
  18. <param name=minspeed value="12">          ; minimum speed (1-15)
  19. <param name=fixnetscape value="YES">      ; Fix netscape bug
  20. <param name=bval1 value="210">            ; Blob val 1
  21. <param name=bval2 value="35600">          ; Blob val 2
  22. <param name=bval3 value="35600">          ; Blob val 3
  23. <param name=numpal value="1">             ; Color palette (1-6)
  24. <param name=sinemode value="YES">         ; Sinus movements ("YES" or "NO")
  25. <param name=negative value="NO">            ; Negative colors ("YES" or "NO")
  26. <param name=textscroll value="blobscr.txt"> ; File for scrolltext or "NO"
  27. <param name=textoffset value="140">         ; Txtscroll y offset
  28. <param name=textspeed value="1">          ; Txtscroll speed
  29. <param name=textfont value="Arial">       ; Txtscroll font name
  30. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  31. <param name=textsize value="24">          ; Txtscroll font size
  32. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  33. <param name=TextColR value="200">         ; Txtscroll color (red component)
  34. <param name=TextColG value="255">         ; Txtscroll color (green component)
  35. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  36. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  37. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  38. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  39. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  40. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  41. <param name=memdelay value="1000">        ; Memory deallocation delay
  42. <param name=priority value="3">           ; Task priority (1..10)
  43. <param name=fixnetscape value="NO">       ; Fix Netscape 3.0 bug ("YES","NO")
  44. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  45. </applet>                                 ; End of applet tag
  46.  
  47.  
  48. NOTE: Don't place "; comments" on final HTML!!!
  49.  
  50. Copy and paste in your html document this cleared and correct tag:
  51.  
  52.  
  53. <applet code="blobs.class" width=180 height=140>
  54. <param name=res value="2">
  55. <param name=nblobs value="4">
  56. <param name=minspeed value="8">
  57. <param name=bval1 value="210">
  58. <param name=bval2 value="35600">
  59. <param name=bval3 value="35600">
  60. <param name=numpal value="1">
  61. <param name=sinemode value="YES">
  62. <param name=negative value="NO">
  63. <param name=textscroll value="blobscr.txt">
  64. <param name=textoffset value="140">
  65. <param name=textspeed value="1">
  66. <param name=textfont value="Arial">
  67. <param name=textbold value="NO">
  68. <param name=textsize value="24">
  69. <param name=textshadow value="YES">
  70. <param name=TextColR value="200">
  71. <param name=TextColG value="255">
  72. <param name=TextColB value="190">
  73. <param name=TextSColR value="20">
  74. <param name=TextSColG value="20">
  75. <param name=TextSColB value="50">
  76. <param name=TextJumpAmp value="0">
  77. <param name=TextJumpSpd value="0">
  78. <param name=memdelay value="1000">
  79. <param name=priority value="3">
  80. <param name=fixnetscape value="NO">
  81. Sorry, your browser doesn't suppor Java.
  82. </applet>
  83.  
  84.  
  85.                              ---------
  86.  
  87.  
  88. Here detailed instructions about how to change parameters:
  89.  
  90.  
  91. The size of the applet is determined by "width" and "height" tags.
  92.  
  93. The applet can be of any size. The res parameter determine the resolution:
  94. with res=1 pixels are small, but effect is slow, with res=8 pixels are too
  95. great but effect is faster. I think the best choices are 1-3.
  96.  
  97. The number of blobs can go from 2 to 8.
  98.  
  99. The minimum speed can go from 1 to 15... better to use low minspeed on small
  100. bwidth and bheight, and high minspeed when the size is greater than 60.
  101.  
  102. With bval1,bval2,bval3 parameters is possible to change the intensity of
  103. blobs.
  104.  
  105. With "numpal" you can choose between 6 different color palettes.
  106.  
  107. Setting "sinemode" parameter to "YES" the blobs will move like waving,
  108. otherwise setting it to "NO" blobs will bounce.
  109.  
  110. Setting "negative" to "YES" the effect will display negative colors.
  111.  
  112.  
  113.                              ---------
  114.  
  115.  
  116. Optional Scrolltext parameters:
  117.  
  118.  
  119. You can optionally activate a scrolltext that will scroll over the applet.
  120. If you don't need the scrolltext, deactivate it placing "NO" at the
  121. "textscroll" parameter.
  122. Otherwise you must supply the name of an ASCII text file, where you must
  123. write the text that you want to be scrolled.
  124. Is supported one only line of text, that can be long as you want.
  125. Remember to upload the text file too, if you activate the scrolltext!
  126.  
  127. If activated, here are the parameters:
  128.  
  129. With "textoffset" you choose the Y offset from the top: placing it to 0 the
  130. scroll will be placed on the top, for example, and placing a value near the
  131. height of the applet it will scroll at the bottom.
  132.  
  133. With "textspeed" parameter you decide the scrolling speed.
  134.  
  135. With "textfont" you choose the font of text. Don't choose a strange or not
  136. standard font, not present in all systems.
  137. The most common fonts are "Arial", "TimesRoman" and "Courier".
  138. If the required font is not present, the most "near" will be used.
  139.  
  140. Setting "textbold" to "YES" you will enlarge a bit the font, otherwise set
  141. it to "NO" for normal contours.
  142.  
  143. With "textsize" you can change the size of text font.
  144. The most common sizes are: 8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72.
  145. Intermediate values will be scaled to nearest available size.
  146.  
  147. Setting "textshadow" to "YES", a shadow will be added to textscroll.
  148. Otherwise, setting it to "NO", any shadow will be "projected".
  149.  
  150. You can choose the color of text with:
  151.  
  152. TextColR = Red component of color (0-255)
  153. TextColG = Green component of color (0-255)
  154. TextColB = Blue component of color (0-255)
  155.  
  156. For example, 0,0,0 is black, 255,255,255 is white, 255,0,0 is red,
  157. 255,255,0 is yellow, 128,128,128 is grey.
  158. You can compose any color you want, do it trying manually or use any paint
  159. program's color selector to find Red Green Blue components of your desired
  160. colors.
  161.  
  162. With TextSColR,TextSColG,TextSColB you can select the color for text shadow.
  163.  
  164. If you like, you can activate the text jumping function.
  165. If "TextJumpAmp" is set to "0", any jumping will be shown.
  166. But increasing the value will result in text jumping: more aplitute, more
  167. high jumps.
  168.  
  169. With "TextJumpSpd" parameter you can select the jumping speed.
  170.  
  171.  
  172.                              ---------
  173.  
  174.  
  175. Compatibility parameters:
  176.  
  177.  
  178. The "memdelay" parameter is useful only to run the applets without problems
  179. on some bugged versions of Netscape 3, that don't deallocate correctly
  180. the memory allocated, resulting in filling all the memory after a minute
  181. the applet is running. This can cause also a system crash in some cases.
  182. Last versions of browsers have fixed this problem, but if you want to run
  183. the applets on old bugged browsers too, set "memdelay" to low values, like
  184. "10" or "16", for example.
  185. But this will slow down a lot the applet speed, so you have to choose
  186. between speed (memdelay set to 1000 or higher) or slow compatibility with
  187. old browsers (memdelay set to 20 or lower).
  188.  
  189. The "priority" parameter is useful mainly when you are running more than
  190. one applet in same page, and one slows down or hangs.
  191. If this applet rus too slow or hangs because other one steal all the CPU
  192. power, try increasing the priority.
  193. Otherwise, if this applet runs well and others slows down, decrease the
  194. priority. Consider the min priority is 1, normal priority is 5, and the
  195. max priority is 10. Usually a priority of 3 is ok for single applets.
  196.  
  197. The "fixnetscape" parameter is useful only when the applet is visualized
  198. with Netscape 3, under Win95. In fact, Netscape has a bug displaying
  199. IndexColorModel, resulting in less colours than normal and dithering.
  200. Setting "fixnetscape" to "YES", the effect will run slower on all browsers,
  201. but will have correct colors on Netscape 3.0. Setting it to "NO", the effect
  202. will run faster on all browsers, except Netscape 3.0 that will display in
  203. worst way. Notice that Netscape 4 and Explorer haven't this problem.
  204.  
  205.  
  206.                              ---------
  207.  
  208.  
  209. Copyright and distribution notices
  210.  
  211.  
  212. Fabio Ciucci is the author and owner of this applet.
  213. You can use freely this applet to enhance your web pages. But since I am
  214. the author of the applet, I placed a secret window that will appear if the
  215. applet is clicked with mouse: it is external to the web browser, so it will
  216. not hit the design of your beautyful html page. This small window will
  217. simply show my name and ask for a link to my java applets page.. the user
  218. can connect to it or cancel, or hide the window and connect after visiting
  219. all your pages. I hope this credit part is not a problem for you...
  220. In any case, if link is accepted a new browser window will appear and your
  221. page will remain on the original window, so you will not lost the visitor.
  222. Consider you will use an effect programmed by me, without pay, for FREE!
  223.  
  224.  
  225.  
  226. Fabio Ciucci (Randy/Ram Jam)
  227.  
  228. fabioc@anfiteatro.it
  229.  
  230. http://www.anfiteatro.it/java.html
  231.  
  232.  
  233.