By Stanley S, written in 2018-2019.
This was a personal project of mine in high school. I be came very fascinated by fractals, especially the Mandelbrot Set, and found that it was not too difficult to calculate and generate. At the time I had recently discovered the LWJGL (LightWeight Java Gaming Library, what Minecraft uses) and how it could draw things to a window.
The Mandelbrot Set is a 2D fractal in the complex numbers that comes from the limiting behavior of iterating a function:
When calculating the sequence of values, if
A related fractal, the Julia Set, does something similar, but instead of
(coming soon)
Download the repository and run the following:
Mac or *nix: ./gradlew build then ./gradlew run
or on Windows: .\gradlew.bat build and .\gradlew.bat run
This should open a window that will begin slowly drawing the fractal.
clicking - Re-centers the view on the clicked location. (Clears the cache)
+ or = - Zoom In (If the image is done, it will be cached)
- or _ - Zoom Out (If the image is done, it will be cached)
s - **Save the completed image to the img directory
w - quick-Write current view to disk so it can be loaded later
r - quick-R**ead a past view from disk to display again
l - **L**oop: will zoom in after the frame finishes loading. If s was the last key pressed, this will save each frame to the img directory.
z - **Z**oom: Resets the zoom to zoomed all the way out, or zoomed nearly to the limit.
v - **V**iewframe
j - switch between **J**ulia and Mandelbrot fractals.