home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 April / CHIP_4_98.ISO / Java / applet / mandel2 / mandel.txt < prev   
Encoding:
Text File  |  1998-02-21  |  7.3 KB  |  178 lines

  1.  
  2.           Anfy Mandel 2.1 - Copyright (C) by Fabio Ciucci 1996/98
  3.  
  4.  
  5. This applet can generate and animate a realtime Mandelbrot fractal.
  6. Remember, are needed both mandel.class , Lware.class and anfy.class.
  7. You must upload these 3 .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
  10. Mandelbrot fractals you want.
  11. Here an example of what you have to write in the html (the things after
  12. the ; are comments with min-max values accepted):
  13.  
  14.  
  15. <applet code="mandel.class" width=150 height=150>  ; Name, Width, Height
  16. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  17. <param name=regcode value="NO">         ; Register code (if you have it)
  18. <param name=reglink value="NO">         ; URL where go optionally when clicked
  19. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  20. <param name=regframename value="_blank"> ; Name of new frame for reglink
  21. <param name=statusmsg value="Mandel applet">  ; Statusbar message
  22. <param name=res value="1">              ; resolution (1-8)
  23. <param name=xstart value="0">           ; X start
  24. <param name=ystart value="7000">        ; Y start
  25. <param name=xmin value="60">            ; X min
  26. <param name=xmax value="-120">          ; X max
  27. <param name=ymin value="60">            ; Y min
  28. <param name=ymax value="-120">          ; Y max
  29. <param name=numpal value="1">           ; Palette number (1-27)
  30. <param name=memdelay value="1000">      ; Memory deallocation delay
  31. <param name=priority value="3">         ; Task priority (1..10)
  32. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  33. Your browser doesn't suppor Java.       ; Msg in no java browsers
  34. </applet>                               ; End of classtag
  35.  
  36.  
  37. NOTE: Don't place "; comments" on final HTML!!!
  38.  
  39. Copy and paste in your html document this cleared and correct tag:
  40.  
  41.  
  42. <applet code="mandel.class" width=150 height=150>
  43. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  44. <param name=regcode value="NO">
  45. <param name=reglink value="NO">
  46. <param name=regnewframe value="YES">
  47. <param name=regframename value="_blank">
  48. <param name=statusmsg value="Mandel applet">
  49. <param name=res value="2">
  50. <param name=xstart value="0">
  51. <param name=ystart value="7000">
  52. <param name=xmin value="60">
  53. <param name=xmax value="-120">
  54. <param name=ymin value="60">
  55. <param name=ymax value="-120">
  56. <param name=numpal value="1">
  57. <param name=memdelay value="1000">
  58. <param name=priority value="1">
  59. <param name=MinSYNC value="10">
  60. Sorry, your browser doesn't suppor Java.
  61. </applet>
  62.  
  63.  
  64.                              ---------
  65.  
  66.  
  67. Here detailed instructions about how to change parameters:
  68.  
  69.  
  70. The credits parameter can't be changed otherwise the applet will not work.
  71.  
  72. To activate the reg parameters read the shareware registration notes.
  73. In the "regcode" parameter you have to place the registration code you
  74. purchase from the author. If it is correct and the applet is run from the
  75. registered domain name, you can use "reglink" parameter, where you can specify
  76. an URL where bring user when the applet is clicked.
  77. If you set to "YES" regnewframe, you can specify a frame where load the
  78. reglink:
  79.  
  80. "_blank"  : To load the link in a new blank unnamed browser window.
  81. "_self"   : To load the link into the same window the applet occupies.
  82. "_parent" : To load the link into the immediate FRAMESET parent.
  83. "_top"    : To load the link into the top body of the window.
  84.  
  85. Otherwise the frame name, for example "myframe1".
  86.  
  87. The size of the applet is determined by width and height tags.
  88.  
  89. The res parameter determine the resolution: with res=1 pixels are small,
  90. but effect is slow, with res=8 pixels are too great but effect fast.
  91. I think the best choices are 2-4.
  92.  
  93. About parameters for fractal generation, I don't placed limits to values,
  94. that can be positive or negative, place values at your own risk.
  95. here what does the values, that can be positive or negative:
  96.  
  97.  XMin:  + scroll right,  - scroll left
  98.  XMax:  + less width X,  - enlarge width X
  99.  YMin:  + more height Y, - less height Y
  100.  YMax:  + scroll down,   - scroll up
  101.  
  102. Aniway this is not 100% correct. You are free to experiment with the
  103. mistery of numbers.
  104.  
  105. Are available 27 different palettes, just select the one you prefer for
  106. your web page.
  107.  
  108.  
  109.                              ---------
  110.  
  111.  
  112. Compatibility parameters:
  113.  
  114.  
  115. The "memdelay" parameter is useful only to run the applets without problems
  116. on some bugged versions of Netscape 3, that don't deallocate correctly
  117. the memory allocated, resulting in filling all the memory after a minute
  118. the applet is running. This can cause also a system crash in some cases.
  119. Last versions of browsers have fixed this problem, but if you want to run
  120. the applets on old bugged browsers too, set "memdelay" to low values, like
  121. "10" or "16", for example.
  122. But this will slow down a lot the applet speed, so you have to choose
  123. between speed (memdelay set to 1000 or higher) or slow compatibility with
  124. old browsers (memdelay set to 20 or lower).
  125.  
  126. The "priority" parameter is useful mainly when you are running more than
  127. one applet in same page, and one slows down or hangs.
  128. If this applet run too slow or hangs because other one steal all the CPU
  129. power, try increasing the priority.
  130. Otherwise, if this applet runs well and others slows down, decrease the
  131. priority. Consider the min priority is 1, normal priority is 5, and the
  132. max priority is 10. Usually a priority of 3 is ok for single applets.
  133.  
  134. The "MinSYNC" parameter must be set to a value between 8 and 16 to slow
  135. down animation in the case it runs too faster on faster computers or because
  136. the applet size is very small. The optimal value seems to be 10, but you can
  137. disable this feature placing a value of 0 if you see flickerings or excessive
  138. slow down.
  139. If the applets steal 100% of CPU power or slows down the browser and Operating
  140. System, try increasing MinSYNC until all runs ok.
  141. Usually values between 40 and 400 fixes all problems, even if applet slows
  142. down for compatibility.
  143.  
  144.                              ---------
  145.  
  146.  
  147. Copyright and distribution notices
  148.  
  149.  
  150. Fabio Ciucci is the author and owner of this applet.
  151. You can use freely this applet to enhance your web pages. But since I am
  152. the author of the applet, I placed a secret linkware window that will appear
  153. if the applet is clicked with mouse, only when the applet is online on a site:
  154. it is external to the web browser, so it will not hit the design of your
  155. beautyful html page.
  156. This small window will simply show my name and ask for a link to my java
  157. applets page.. the user can connect to it or cancel, or hide the window and
  158. connect after visiting all your pages.
  159. I hope this credit part is not a problem for you...
  160. In any case, if link is accepted a new browser window will appear and your
  161. page will remain on the original window, so you will not lost the visitor.
  162. Consider you will use an effect programmed by me, without pay, for FREE!
  163.  
  164. NOTE: You can include the applets archive on CD-ROMS or shareware collections
  165. and shareware sites without ask me, but only if you leave the archive(s)
  166. unchanged.
  167.  
  168.                              ---------
  169.  
  170.  
  171. Fabio Ciucci (Randy/Ram Jam)
  172.  
  173. fabioc@anfiteatro.it
  174.  
  175. http://www.anfiteatro.it/java.html
  176.  
  177.  
  178.