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

  1.  
  2.           Anfy Deform 2.0 - Copyright (C) by Fabio Ciucci 1996/97
  3.  
  4.  
  5. This applet can deform any GIF or JPG image.
  6. Remember that are needed both Deform.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 warpers
  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="Deform.class" width=150 height=132> ; Name, Width, Height
  15. <param name=image value="imfad1.gif">   ; Image to load
  16. <param name=res value="1">              ; resolution (1 .. 8)
  17. <param name=distval value="130">        ; Distortion value (0 .. 500)
  18. <param name=dfact value="35">           ; Distort factor (1 .. 100)
  19. <param name=dspeed value="3">           ; Speed (1 .. 50)
  20. <param name=doffset value="146">        ; X mixing offset (0 .. width)
  21. <param name=xv1 value="10">             ; X1 offset (1 .. 19)
  22. <param name=yv1 value="12">             ; Y1 offset (1 .. 19)
  23. <param name=xv2 value="15">             ; X2 offset (1 .. 19)
  24. <param name=yv2 value="18">             ; Y2 offset (1 .. 19)
  25. <param name=textscroll value="defscr.txt"> ; File for scrolltext or "NO"
  26. <param name=textoffset value="140">         ; Txtscroll y offset
  27. <param name=textspeed value="1">          ; Txtscroll speed
  28. <param name=textfont value="Arial">       ; Txtscroll font name
  29. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  30. <param name=textsize value="24">          ; Txtscroll font size
  31. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  32. <param name=TextColR value="200">         ; Txtscroll color (red component)
  33. <param name=TextColG value="255">         ; Txtscroll color (green component)
  34. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  35. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  36. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  37. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  38. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  39. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  40. <param name=memdelay value="1000">        ; Memory deallocation delay
  41. <param name=priority value="3">           ; Task priority (1..10)
  42. Sorry, your browser doesn't suppor Java.  ; Msg in no java browsers
  43. </applet>
  44.  
  45.  
  46. NOTE: Don't place "; comments" on final HTML!!!
  47.  
  48. Copy and paste in your html document this cleared and correct tag:
  49.  
  50.  
  51. <applet code="Deform.class" width=150 height=132>
  52. <param name=image value="imfad1.gif">
  53. <param name=res value="1">
  54. <param name=distval value="130">
  55. <param name=dfact value="35">
  56. <param name=dspeed value="3">
  57. <param name=doffset value="146">
  58. <param name=xv1 value="10">
  59. <param name=yv1 value="12">
  60. <param name=xv2 value="15">
  61. <param name=yv2 value="18">
  62. <param name=textscroll value="defscr.txt">
  63. <param name=textoffset value="140">
  64. <param name=textspeed value="1">
  65. <param name=textfont value="Arial">
  66. <param name=textbold value="NO">
  67. <param name=textsize value="12">
  68. <param name=textshadow value="YES">
  69. <param name=TextColR value="255">
  70. <param name=TextColG value="55">
  71. <param name=TextColB value="255">
  72. <param name=TextSColR value="20">
  73. <param name=TextSColG value="20">
  74. <param name=TextSColB value="50">
  75. <param name=TextJumpAmp value="30">
  76. <param name=TextJumpSpd value="2">
  77. <param name=memdelay value="1000">
  78. <param name=priority value="3">
  79. Sorry, your browser doesn't suppor Java.
  80. </applet>
  81.  
  82.  
  83.                              ---------
  84.  
  85.  
  86. Here detailed instructions about how to change parameters:
  87.  
  88.  
  89. The GIF/JPG image can be of any size. If res=1, remember to place the exact
  90. size of image in "width" and "height" tags. If res=2, place double values,
  91. if res=3 triple values etc.
  92. In fact, res is a sort of zoomer.
  93.  
  94. The "distval" parameter (0 .. 500) changes the kind of waves: smaller
  95. values will create many small waves, higher values will create less bigger
  96. waves.
  97.  
  98. The "dfact" parameter (1 .. 100) controls the distortion factor.
  99. Smaller values causes higher distortions, higher values less distortion.
  100.  
  101. The "dspeed" parameter (1 .. 50) determine the speed of waves.
  102.  
  103. The "doffset" parameter is not easy to explain. Aniway place values in the
  104. range 0 .. width of the image. Best results with values near the width of
  105. the image.
  106.  
  107. With xv1,yv1,xv2,yv2 (1 .. 19) you can control the offset between the two
  108. radial waves that mixing each other generate the distortion.
  109.  
  110.  
  111.                              ---------
  112.  
  113.  
  114. Optional Scrolltext parameters:
  115.  
  116.  
  117. You can optionally activate a scrolltext that will scroll over the applet.
  118. If you don't need the scrolltext, deactivate it placing "NO" at the
  119. "textscroll" parameter.
  120. Otherwise you must supply the name of an ASCII text file, where you must
  121. write the text that you want to be scrolled.
  122. Is supported one only line of text, that can be long as you want.
  123. Remember to upload the text file too, if you activate the scrolltext!
  124.  
  125. If activated, here are the parameters:
  126.  
  127. With "textoffset" you choose the Y offset from the top: placing it to 0 the
  128. scroll will be placed on the top, for example, and placing a value near the
  129. height of the applet it will scroll at the bottom.
  130.  
  131. With "textspeed" parameter you decide the scrolling speed.
  132.  
  133. With "textfont" you choose the font of text. Don't choose a strange or not
  134. standard font, not present in all systems.
  135. The most common fonts are "Arial", "TimesRoman" and "Courier".
  136. If the required font is not present, the most "near" will be used.
  137.  
  138. Setting "textbold" to "YES" you will enlarge a bit the font, otherwise set
  139. it to "NO" for normal contours.
  140.  
  141. With "textsize" you can change the size of text font.
  142. The most common sizes are: 8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72.
  143. Intermediate values will be scaled to nearest available size.
  144.  
  145. Setting "textshadow" to "YES", a shadow will be added to textscroll.
  146. Otherwise, setting it to "NO", any shadow will be "projected".
  147.  
  148. You can choose the color of text with:
  149.  
  150. TextColR = Red component of color (0-255)
  151. TextColG = Green component of color (0-255)
  152. TextColB = Blue component of color (0-255)
  153.  
  154. For example, 0,0,0 is black, 255,255,255 is white, 255,0,0 is red,
  155. 255,255,0 is yellow, 128,128,128 is grey.
  156. You can compose any color you want, do it trying manually or use any paint
  157. program's color selector to find Red Green Blue components of your desired
  158. colors.
  159.  
  160. With TextSColR,TextSColG,TextSColB you can select the color for text shadow.
  161.  
  162. If you like, you can activate the text jumping function.
  163. If "TextJumpAmp" is set to "0", any jumping will be shown.
  164. But increasing the value will result in text jumping: more aplitute, more
  165. high jumps.
  166.  
  167. With "TextJumpSpd" parameter you can select the jumping speed.
  168.  
  169.  
  170.                              ---------
  171.  
  172.  
  173. Compatibility parameters:
  174.  
  175.  
  176. The "memdelay" parameter is useful only to run the applets without problems
  177. on some bugged versions of Netscape 3, that don't deallocate correctly
  178. the memory allocated, resulting in filling all the memory after a minute
  179. the applet is running. This can cause also a system crash in some cases.
  180. Last versions of browsers have fixed this problem, but if you want to run
  181. the applets on old bugged browsers too, set "memdelay" to low values, like
  182. "10" or "16", for example.
  183. But this will slow down a lot the applet speed, so you have to choose
  184. between speed (memdelay set to 1000 or higher) or slow compatibility with
  185. old browsers (memdelay set to 20 or lower).
  186.  
  187. The "priority" parameter is useful mainly when you are running more than
  188. one applet in same page, and one slows down or hangs.
  189. If this applet rus too slow or hangs because other one steal all the CPU
  190. power, try increasing the priority.
  191. Otherwise, if this applet runs well and others slows down, decrease the
  192. priority. Consider the min priority is 1, normal priority is 5, and the
  193. max priority is 10. Usually a priority of 3 is ok for single applets.
  194.  
  195.  
  196.                              ---------
  197.  
  198.  
  199. Copyright and distribution notices
  200.  
  201.  
  202. Fabio Ciucci is the author and owner of this applet.
  203. You can use freely this applet to enhance your web pages. But since I am
  204. the author of the applet, I placed a secret window that will appear if the
  205. applet is clicked with mouse: it is external to the web browser, so it will
  206. not hit the design of your beautyful html page. This small window will
  207. simply show my name and ask for a link to my java applets page.. the user
  208. can connect to it or cancel, or hide the window and connect after visiting
  209. all your pages. I hope this credit part is not a problem for you...
  210. In any case, if link is accepted a new browser window will appear and your
  211. page will remain on the original window, so you will not lost the visitor.
  212. Consider you will use an effect programmed by me, without pay, for FREE!
  213.  
  214.  
  215.  
  216. Fabio Ciucci (Randy/Ram Jam)
  217.  
  218. fabioc@anfiteatro.it
  219.  
  220. http://www.anfiteatro.it/java.html
  221.  
  222.  
  223.