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

  1.  
  2.           Anfy Mandel 2.0 - Copyright (C) by Fabio Ciucci 1996/97
  3.  
  4.  
  5. This applet can generate and animate a realtime Mandelbrot fractal.
  6. Remember, are needed both mandel.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
  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=res value="1">              ; resolution (1-8)
  17. <param name=xstart value="0">           ; X start
  18. <param name=ystart value="7000">        ; Y start
  19. <param name=xmin value="60">            ; X min
  20. <param name=xmax value="-120">          ; X max
  21. <param name=ymin value="60">            ; Y min
  22. <param name=ymax value="-120">          ; Y max
  23. <param name=numpal value="1">           ; Palette number (1-27)
  24. <param name=memdelay value="1000">      ; Memory deallocation delay
  25. <param name=priority value="3">         ; Task priority (1..10)
  26. Your browser doesn't suppor Java.       ; Msg in no java browsers
  27. </applet>                               ; End of classtag
  28.  
  29.  
  30. NOTE: Don't place "; comments" on final HTML!!!
  31.  
  32. Copy and paste in your html document this cleared and correct tag:
  33.  
  34.  
  35. <applet code="mandel.class" width=150 height=150>
  36. <param name=res value="1">
  37. <param name=xstart value="0">
  38. <param name=ystart value="7000">
  39. <param name=xmin value="60">
  40. <param name=xmax value="-120">
  41. <param name=ymin value="60">
  42. <param name=ymax value="-120">
  43. <param name=numpal value="1">
  44. <param name=memdelay value="1000">
  45. <param name=priority value="3">
  46. Sorry, your browser doesn't suppor Java.
  47. </applet>
  48.  
  49.  
  50.                              ---------
  51.  
  52.  
  53. Here detailed instructions about how to change parameters:
  54.  
  55.  
  56. The size of the applet is determined by width and height tags.
  57.  
  58. The res parameter determine the resolution: with res=1 pixels are small,
  59. but effect is slow, with res=8 pixels are too great but effect fast.
  60. I think the best choices are 2-4.
  61.  
  62. About parameters for fractal generation, I don't placed limits to values,
  63. that can be positive or negative, place values at your own risk.
  64. here what does the values, that can be positive or negative:
  65.  
  66.  XMin:  + scroll right,  - scroll left
  67.  XMax:  + less width X,  - enlarge width X
  68.  YMin:  + more height Y, - less height Y
  69.  YMax:  + scroll down,   - scroll up
  70.  
  71. Aniway this is not 100% correct. You are free to experiment with the
  72. mistery of numbers.
  73.  
  74. Are available 27 different palettes, just select the one you prefer for
  75. your web page.
  76.  
  77.  
  78.                              ---------
  79.  
  80.  
  81. Compatibility parameters:
  82.  
  83.  
  84. The "memdelay" parameter is useful only to run the applets without problems
  85. on some bugged versions of Netscape 3, that don't deallocate correctly
  86. the memory allocated, resulting in filling all the memory after a minute
  87. the applet is running. This can cause also a system crash in some cases.
  88. Last versions of browsers have fixed this problem, but if you want to run
  89. the applets on old bugged browsers too, set "memdelay" to low values, like
  90. "10" or "16", for example.
  91. But this will slow down a lot the applet speed, so you have to choose
  92. between speed (memdelay set to 1000 or higher) or slow compatibility with
  93. old browsers (memdelay set to 20 or lower).
  94.  
  95. The "priority" parameter is useful mainly when you are running more than
  96. one applet in same page, and one slows down or hangs.
  97. If this applet run too slow or hangs because other one steal all the CPU
  98. power, try increasing the priority.
  99. Otherwise, if this applet runs well and others slows down, decrease the
  100. priority. Consider the min priority is 1, normal priority is 5, and the
  101. max priority is 10. Usually a priority of 3 is ok for single applets.
  102.  
  103.  
  104.                              ---------
  105.  
  106.  
  107. Copyright and distribution notices
  108.  
  109.  
  110. Fabio Ciucci is the author and owner of this applet.
  111. You can use freely this applet to enhance your web pages. But since I am
  112. the author of the applet, I placed a secret window that will appear if the
  113. applet is clicked with mouse: it is external to the web browser, so it will
  114. not hit the design of your beautyful html page. This small window will
  115. simply show my name and ask for a link to my java applets page.. the user
  116. can connect to it or cancel, or hide the window and connect after visiting
  117. all your pages. I hope this credit part is not a problem for you...
  118. In any case, if link is accepted a new browser window will appear and your
  119. page will remain on the original window, so you will not lost the visitor.
  120. Consider you will use an effect programmed by me, without pay, for FREE!
  121.  
  122.  
  123.  
  124. Fabio Ciucci (Randy/Ram Jam)
  125.  
  126. fabioc@anfiteatro.it
  127.  
  128. http://www.anfiteatro.it/java.html
  129.  
  130.  
  131.