|
This applet demonstrates the Mandelbrot set, a colorful fractal of infinite detail and interesting shapes. To view the entire set at once, center the window at x = 0 and y = 0, and set the zoom factor to 10. As you set the zoom factor smaller, the window zooms in MORE, allowing you to view as much detail as you wish. Try zooming in by pressing the + button and zooming out by pressing the - button, and notice that the text fields are also updated when you do this! To try to zoom in at a particular spot, first adjust x and y until the red cross-hairs are centered at that spot. To change the level of detail to which the picture is generated, adjust the resolution, bigger meaning more detail. Try going from small resolution to large. Notice that when it is very small, the picture is almost black, and when it is really large, some of the black spots become colorful, while others remain currently black. This applet also demonstrates some of the colorful possibilities available in the java.awt package. This class is reliant on another subclass called pixel. The source code is available and open source: Pixel.java MandelbrotImageSet.java |