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

  1.  
  2.           Anfy Flozoids - Copyright (C) by Fabio Ciucci 1997/98
  3.  
  4.  
  5. This applet can animate in realtime an artificial life algorithm, where
  6. some "flozoids" are flying (or swimming) around.This applet is fully
  7. parametrized, so you can change many things to adapt the effect to your
  8. pages and purposes.
  9.  
  10. I have to thank Jeff Cragg and Alex Vulliamy for this idea.
  11.  
  12. The following 2 ".class" files must be uploaded: flozoids.class and
  13. Lware.class.
  14.  
  15. Insert the <applet> tag in your html document as follows to add this applet
  16. to your page (Comments after the ";" symbol are code explanations and
  17. acceptable min/max values. They are not part of the applet language):
  18.  
  19.  
  20. <applet code=flozoids.class width=500 height=100>  ; Name, Width, Height
  21. <param name=credits value="Applet by Fabio Ciucci (www.anfyjava.com)">
  22. <param name=regcode value="NO">          ; Registration code (if you have it)
  23. <param name=reglink value="NO">          ; Optional URL link when the applet
  24.                                            is "clicked".
  25. <param name=regnewframe value="YES">          ; Reglink opened in new frame?
  26. <param name=regframename value="_blank">      ; Name of new frame for reglink
  27. <param name=statusmsg value="Flozoids applet">  ; Statusbar message
  28. <param name=numfloz value="50">              ; Number of flozoids
  29. <param name=flozdistance value="200">    ; Distance allowed between flozoids
  30. <param name=tocenter value="20">         ; How flozoids tends to go to center
  31. <param name=acceleration value="30">     ; Acceleration of flozoids
  32. <param name=speed value="5">             ; Speed of flozoids
  33. <param name=sidebouncing value="80">     ; Side bounding factor
  34. <param name=fheads value="YES">          ; Flozoids have heads? ("YES", "NO")
  35. <param name=interactive value="YES">     ; Interactive mode ("YES", "NO")
  36. <param name=overtext value="YES">        ; Flozoids go over text? ("YES", "NO")
  37. <param name=backimage value="NO">        ; Background image (it's name or "NO")
  38. <param name=backR value="0">             ; Background color (red component)
  39. <param name=backG value="0">             ; Background color (green component)
  40. <param name=backB value="0">             ; Background color (blue component)
  41. <param name=flozR1 value="255">          ; Flozoids color1 (red component)
  42. <param name=flozG1 value="240">          ; Flozoids color1 (green component)
  43. <param name=flozB1 value="240">          ; Flozoids color1 (blue component)
  44. <param name=flozR2 value="60">           ; Flozoids color2 (red component)
  45. <param name=flozG2 value="70">           ; Flozoids color2 (green component)
  46. <param name=flozB2 value="80">           ; Flozoids color2 (blue component)
  47. <param name=overimg value="NO">          ; Optional image over applet
  48. <param name=overimgX value="0">          ; Over image X offset
  49. <param name=overimgY value="0">          ; Over image Y offset
  50. <param name=memdelay value="1000">       ; Memory deallocation delay
  51. <param name=priority value="3">          ; Task priority (1..10)
  52. <param name=MinSYNC value="10">          ; Min. milliseconds/frame for sync
  53. Sorry, your browser doesn't support Java.; Message for no java browsers.
  54. </applet>                                ; End of applet tag
  55.  
  56.                              ---------
  57.  
  58.  
  59. The following instructions detail how to change parameters:
  60.  
  61. Attempting to change the credits parameter will disable the applet.
  62.  
  63. To activate the reg parameters read the shareware registration notes.
  64. In the "regcode" parameter, place the registration code you
  65. purchased from the author. If the code is correct and the applet is run from
  66. the registered domain name, you can use "link" parameters to link to a URL
  67. when the applet is "clicked".
  68.  
  69. If you set "regnewframe" to "YES", you can specify a specific frame location
  70. for the reglink:
  71.  
  72. "_blank"  : To load the link in a new blank unnamed browser window.
  73. "_self"   : To load the link into the same window the applet occupies.
  74. "_parent" : To load the link into the immediate FRAMESET parent.
  75. "_top"    : To load the link into the top body of the window.
  76.  
  77. You can also set a custom frame name, such as "myframe1".
  78.  
  79. With the "overimg" parameter you can specify the name of an image that will
  80. be painted over the applet. The best options are transparent GIF images.
  81. NOTE: Animated GIF images are supported, but will be displayed as animated
  82. only on latest browsers (Netscape 4 and Explorer 4 or newer).
  83. With "overimgX" and "overimgY" you can center the image over the applet area.
  84.  
  85. The size of the applet is determined by width and height tags.
  86.  
  87. The number of flozoids is determined by the "numfloz" parameter: more
  88. flozoids mean slower execution.
  89.  
  90. The behaviour of flozoids can be altered with these parameters:
  91.  
  92. "flozdistance" : determines how far a flozoid can go from other flozoids
  93. "tocenter" : determines the tendency to go to center of screen
  94. "acceleration" : determines the acceleration power of flozoids
  95. "speed" : determines the max speed a flozoid can reach
  96. "sidebouncing" : determines the intensity of bouncing when edges of the
  97.                  applet are reached.
  98. "fheads" : determines if flozoids have heads or not.
  99. "overtext" : determines if flozoids can overwrite textscroll.
  100.  
  101. If you set the "interactive" parameter to "YES", flozoids will follow
  102. the mouse pointer, when it enter in the applet area.
  103.  
  104. You can change the colors for best results on your web page. The RGB
  105. values are the same as HTML tags, but in decimal values.
  106.  
  107. Use backR,backG,backB to change background color.
  108.  
  109. If you want to display an image in the background, place its name in the
  110. place of "NO" at backimage parameter (for example "back.jpg").
  111. The only requirement is that the background image must be the same size as
  112. the applet to completely cover it.
  113.  
  114. You can choose the first and last color of a gradient that will be spread
  115. over all the flozoids: flozR1,flozG1,flozB1 for first color, flozR2,flozG2,
  116. flozB2 for the last color of the gradient. Examples: to make ALL the flozoids
  117. white, place 255 as value for all the flozR1,flozG1,flozB1 and flozR2,flozG2,
  118. flozB2.
  119.  
  120. To make flozoids color go from  black to white (all the intermediate grays),
  121. place a value of 255 for flozR1,flozG1,flozB1 and a value of 0 for the second
  122. color: flozR2,flozG2,flozB2.
  123. You can also make rainbows (from red to blue, etc.).
  124.  
  125.  
  126.