|[Front page] [HTTPget] [AdBlock] [PHP Fortune] [GPS] [Mandelbrot] [XSL tutorial] [C tutorial] [TiddlyWiki] [Contact]|
Java Mandelbrot-fractal Renderer
I recently ran across an introduction to the Mandelbrot set, and realized that fractals, which I have always thought of as extremely complex, actually are quite simple.
This motivated me to try playng around with them myself. The result was a small Java-program which was able to render the Mandelbrot set and allowed the user to zoom in on any part of it. On this page you can download the program and view some of the images created with it. Click the images on the right to see examples of the images generated by the program.
Please feel free to use this code as you please. If you have any questions or comments, please e-mail me. The code is pretty much (actually completely) uncommented, but should compile without any modifications.
When the program is running, zoom in on any part of the fractal by dragging the width of the box you wish to zoom in on. The program will maintain the correct aspect ratio after zooming, to avoid distorting the fractal. It's not possible to zoom in endlessly on the fractal using this program, as it's using 64-bit doubles, which will eventually cause an underflow.
The program requires Java1.4 to run. (download)