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

  1.  
  2.           AnfyBlur 2.0 - Copyright (C) by Fabio Ciucci 1997
  3.  
  4.  
  5. This is a Java routine able to animate a sequence of GIF/JPG images, like
  6. other animators, but it calculate also the motion blur affect between
  7. frames, like blur effect caused by speed in cameras.
  8. Offcouse the GIF/JPG frames must be all of same size.
  9. Rememeber that you need both anblur.class and Lware.class
  10. You must upload these 2 .class files and insert the <applet> tag on your
  11. html document to add this applet to your page.
  12. Here an example of what you have to write in the html (the things anfter
  13. the ; are comments with min-max values acceptet):
  14.  
  15.  
  16. <applet code="anblur.class" width=200 height=226>  ; Name, Width, Height
  17. <param name=imgs value="anim/ani">              ; Animation to load
  18. <param name=format value=".gif">                ; Suffix of frames
  19. <param name=nimgs value="5">                    ; Number of frames
  20. <param name=pingpong value="YES">               ; Cyclic or Ping-Pong mode
  21. <param name=doublesize value="YES">             ; Normal or double size.
  22. <param name=speed value="100">                  ; Speed of play
  23. <param name=pingpause value="1000">             ; Ping Pause
  24. <param name=pongpause value="100">              ; Pong Pause
  25. <param name=audioping value="audio/piccon.au">  ; Audio effect on Ping
  26. <param name=audiopong value="NO">               ; Audio effect on Pong
  27. <param name=priority value="3">                 ; Task priority (1..10)
  28. Sorry, your browser doesn't suppor Java.        ; Msg in no java browsers
  29. </applet>
  30.  
  31.  
  32. NOTE: Don't place "; comments" on final HTML!!!
  33.  
  34. Copy and paste in your html document this cleared and correct tag:
  35.  
  36.  
  37. <applet code="anblur.class" width=200 height=226>
  38. <param name=imgs value="anim/ani">
  39. <param name=format value=".gif">
  40. <param name=nimgs value="5">
  41. <param name=pingpong value="YES">
  42. <param name=doublesize value="YES">
  43. <param name=speed value="100">
  44. <param name=pingpause value="1000">
  45. <param name=pongpause value="100">
  46. <param name=audioping value="audio/piccon.au">
  47. <param name=audiopong value="NO">
  48. <param name=priority value="3">
  49. Sorry, your browser doesn't suppor Java.
  50. </applet>
  51.  
  52.  
  53.                              ---------
  54.  
  55.  
  56. Here detailed instructions about how to change parameters:
  57.  
  58.  
  59. The images can be of any size, GIF and/or JPG. But all must be same size.
  60. You can display them animated at original size, otherwise zooming them *2,
  61. with "doublesize" parameter set to "YES".
  62. In this case, remember to place in the "width" and "height" tags the doubled
  63. size of frames.
  64. For example, if frames are 100x113, you have to set width=200, height=223.
  65. Setting "doublesize" to "NO", mean playing in original size, in this
  66. case place the original size in "width" and "height" tags.
  67. Note: when the format is .gif, DON'T save any transparency color information.
  68.  
  69. The frames of animation can start with any prefix, but must end with the
  70. framenum (1,2,3,4...).
  71. You can manually select the suffix (".gif" or ".jpg") with "format" param.
  72. The "imgs" parameter needs the prefix name of images, with an evenctual
  73. path. For example, if images are named ani1.gif, ani2.gif, ani3.gif,
  74. and are placed in the anim/ subdirectory, you have to set:
  75.  
  76. <param name=imgs value="anim/ani">
  77. <param name=format value=".gif">
  78.  
  79. The "nimgs" parameter needs to know the number of frames.
  80.  
  81. There are two replay modes: "CYCLIC" and "PING PONG".
  82. The cyclic mode, simply play the frames starting from 1th, until the last
  83. one, then restarts from 1th again: 1,2,3,4,5,1,2,3,4,5,1,2,3,4....
  84. The ping pong mode instead play from 1th to last, then go backwards reaching
  85. again 1th, then changing direction of play reach again the last frame.
  86. In other words: 1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,1,2,3,4.....
  87. This mode is useful for some kind of movements, like the one in the
  88. example animation included.
  89. Setting "pingpong" to "YES" you enable ping pong mode, setting it to "NO"
  90. you enable cyclic mode.
  91.  
  92. You can determine the speed of play with "speed" parameter. The value is
  93. expressed in microseconds. Usually the animation goes slower than the
  94. parameter, for drawing time.
  95.  
  96. The "pingpause" and "pongpause" parameters are the speed of first and
  97. last frames, and setting one or both of them higher than "speed" parameter,
  98. you will cause a pause. This can be useful in some cases.
  99.  
  100. You are able to add sounds at ping (first) and pong (last) frames, with
  101. "audioping" and "audiopong" parameters.
  102. To select a sound, place the name of .au sample, evenctually with the path.
  103. Otherwise write a "NO", this will disable playing feature.
  104.  
  105. Note: sounds can be only in Sun's .au format. If your programs saves only
  106. in .voc, .waw, .iff, search for programs like Goldwave to convert them.
  107. Remember to save as 8000 Hz mono .au samples.
  108.  
  109.  
  110.                              ---------
  111.  
  112.  
  113. Compatibility parameters:
  114.  
  115.  
  116. The "priority" parameter is useful mainly when you are running more than
  117. one applet in same page, and one slows down or hangs.
  118. If this applet run too slow or hangs because other one steal all the CPU
  119. power, try increasing the priority.
  120. Otherwise, if this applet runs well and others slows down, decrease the
  121. priority. Consider the min priority is 1, normal priority is 5, and the
  122. max priority is 10. Usually a priority of 3 is ok for single applets.
  123.  
  124.  
  125.                              ---------
  126.  
  127.  
  128. Copyright and distribution notices
  129.  
  130.  
  131. Fabio Ciucci is the author and owner of this applet.
  132. You can use freely this applet to enhance your web pages. But since I am
  133. the author of the applet, I placed a secret window that will appear if the
  134. applet is clicked with mouse: it is external to the web browser, so it will
  135. not hit the design of your beautyful html page. This small window will
  136. simply show my name and ask for a link to my java applets page.. the user
  137. can connect to it or cancel, or hide the window and connect after visiting
  138. all your pages. I hope this credit part is not a problem for you...
  139. In any case, if link is accepted a new browser window will appear and your
  140. page will remain on the original window, so you will not lost the visitor.
  141. Consider you will use an effect programmed by me, without pay, for FREE!
  142.  
  143.  
  144.  
  145. Fabio Ciucci (Randy/Ram Jam)
  146.  
  147. fabioc@anfiteatro.it
  148.  
  149. http://www.anfiteatro.it/java.html
  150.  
  151.  
  152.