home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 September / Chip_1999-09_cd.bin / internet / JSLib / applets / 0116 / parametry.txt < prev    next >
Text File  |  1998-11-17  |  6KB  |  94 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.
  7. This applet is fully parametrized, so you can change many things to
  8. adapt the effect to your pages and purposes.
  9. Here an example of what you have to write in the html (the things anfter
  10. the ; are comments with min-max values acceptet):
  11.  
  12.  
  13. <applet code=flozoids.class width=500 height=100>  ; Name, Width, Height
  14. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  15. <param name=regcode value="NO">         ; Register code (if you have it)
  16. <param name=reglink value="NO">         ; URL where go optionally when clicked
  17. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  18. <param name=regframename value="_blank"> ; Name of new frame for reglink
  19. <param name=statusmsg value="Flozoids applet">  ; Statusbar message
  20. <param name=numfloz value="50">          ; Number of flozoids
  21. <param name=flozdistance value="200">    ; Distance allowed between flozoids
  22. <param name=tocenter value="20">         ; How flozoids tends to go to center
  23. <param name=acceleration value="30">     ; Acceleration of flozoids
  24. <param name=speed value="5">            ; Speed of flozoids
  25. <param name=sidebouncing value="80">    ; Side bounding factor
  26. <param name=fheads value="YES">         ; Flozoids have heads? ("YES", "NO")
  27. <param name=overtext value="YES">       ; Flozoids go over text? ("YES", "NO")
  28. <param name=backimage value="NO">       ; Background image (it's name or "NO")
  29. <param name=backR value="0">            ; Background color (red component)
  30. <param name=backG value="0">            ; Background color (green component)
  31. <param name=backB value="0">            ; Background color (blue component)
  32. <param name=flozR1 value="255">         ; Flozoids color1 (red component)
  33. <param name=flozG1 value="240">         ; Flozoids color1 (green component)
  34. <param name=flozB1 value="240">         ; Flozoids color1 (blue component)
  35. <param name=flozR2 value="60">          ; Flozoids color2 (red component)
  36. <param name=flozG2 value="70">          ; Flozoids color2 (green component)
  37. <param name=flozB2 value="80">          ; Flozoids color2 (blue component)
  38. <param name=textscroll value="flozscr.txt"> ; File for scrolltext or "NO"
  39. <param name=textoffset value="140">         ; Txtscroll y offset
  40. <param name=textspeed value="1">          ; Txtscroll speed
  41. <param name=textfont value="Arial">       ; Txtscroll font name
  42. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  43. <param name=textsize value="24">          ; Txtscroll font size
  44. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  45. <param name=TextColR value="200">         ; Txtscroll color (red component)
  46. <param name=TextColG value="255">         ; Txtscroll color (green component)
  47. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  48. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  49. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  50. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  51. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  52. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  53. <param name=TextSineAmp value="0">        ; Txtscroll sineshape amplitude        
  54. <param name=TextSineSpd value="0">        ; Txtscroll sineshape movement
  55. <param name=TextSineAngle value="0">      ; Txtscroll sineangle / pixel
  56. <param name=memdelay value="1000">        ; Memory deallocation delay
  57. <param name=priority value="3">           ; Task priority (1..10)
  58. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  59. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  60. </applet>                                 ; End of applet tag
  61.  
  62.                              ---------
  63.  
  64.  
  65. The behaviour of flozoids can be altered with these parameters:
  66.  
  67. "flozdistance" : it determine how much a flozoid can go far from others
  68. "tocenter" : it determine the tendence to go to center of screen
  69. "acceleration" : it determine the acceleration power of flozoids
  70. "speed" : it determine the max speed a flozoid can reach
  71. "sidebouncing" : it determine the intensity of bouncing when edges of the
  72.                  applets are reached.
  73. "fheads" : it determine if flozoids have heads or not.
  74. "overtext" : it determine if flozoids can overwrite textscroll.
  75.  
  76. You can change the colours for best results over your web page, the RGB
  77. values are same as HTML tags, but in decimal values.
  78.  
  79. Use backR,backG,backB to change background color.
  80.  
  81. If you want to display an image in the background, place it's name in the
  82. place of "NO" at backimage parameter (for example "back.jpg").
  83. The only requirement is that the background image must be same size as the
  84. applet to completely cover it.
  85.  
  86. About flozoids color, you can choose the first and last color of a gradient
  87. that will be spread over all the flozoids: flozR1,flozG1,flozB1 for first
  88. color, flozR2,flozG2,flozB2 for last color of gradient.
  89. Examples: to make ALL the flozoids white, place 255 as value for all the
  90. flozR1,flozG1,flozB1 and flozR2,flozG2,flozB2.
  91. To make flozoids coloured from black to white (all the intermediate grays),
  92. place a value of 255 for flozR1,flozG1,flozB1 and a value of 0 for second
  93. color: flozR2,flozG2,flozB2.
  94. Offcourse you can make rainbows (from red to blue, etc.).