https://github.com/sathiiii/fractals-generator
This is the first project for the 2nd year course CO225 (Introduction to Java Programming). The aim of the project was to build a GUI application that can plot two of the most popular fractals: Mandelbrot set and the Julia set using inheritance as much as possible.
https://github.com/sathiiii/fractals-generator
Last synced: 2 months ago
JSON representation
This is the first project for the 2nd year course CO225 (Introduction to Java Programming). The aim of the project was to build a GUI application that can plot two of the most popular fractals: Mandelbrot set and the Julia set using inheritance as much as possible.
- Host: GitHub
- URL: https://github.com/sathiiii/fractals-generator
- Owner: sathiiii
- License: apache-2.0
- Created: 2020-12-03T03:15:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-21T01:59:53.000Z (over 3 years ago)
- Last Synced: 2025-01-11T09:54:44.234Z (4 months ago)
- Language: Java
- Size: 3.69 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About the project
My main goal for the project was to somehow generate the fractal colouring scheme similar to the Mandelbrot picture on wikipedia:
I was able to generate two colouring schemes and following are pictures of both Mandelbrot set and the Julia set plotted using those two approaches:
Smooth Colour Scheme | Gradient Colour Scheme
:-------------------------:|:-------------------------:
 | 
 | The program can also display the real and imaginary axes on the plot. The complex number corresponding to the mouse pointer location is displayed under the mouse pointer. The following is a screenshot of the program showing the axes and the position:\
# Usage
```
java Fractal Mandelbrot [REALMIN REALMAX IMAGMIN IMAGMAX] [MAXITR]
OR
java Fractal Julia [C_REAL C_IMAG] [MAXITR]
```The first argument must be the type of the fractal (either the Mandelbrot set or the Filled Julia set) to be drawn and is required.
If the first argument provided is Mandelbrot, the following arguments `REALMIN`, `REALMAX`, `IMAGMIN`, `IMAGMAX` which specifies the Region Of Interest and `MAXITR` which specifies the maximum number of iterations are optional.
If not provided the default values of the Region Of Interest are -1, 1, -1, 1 and the default value of `MAXITR` is 1000.
If the first argument provided is Julia, the following arguments `C_REAL`, `C_IMAG` which specifies the real and imaginary values of the constant complex number and `MAXITR` are optional.
If not provided the default values of the `C_REAL`, `C_IMAG` are -0.4, 0.6 and the default value of `MAXITR` is 1000.