Skip to content

This program will generate images of the Mandelbrot set for f(z) = z^2 + c and other arbitrary polynomials.

License

Notifications You must be signed in to change notification settings

shane-ks/Fractal-Viewer-OCaml

Repository files navigation

OCaml Mandelbrot Set Viewer

This program will generate images of the Mandelbrot set and other arbitrary polynomials.

Screenshot 2023-04-30 at 9 20 40 PM

To use the program:

  1. Install xquartz. If you're on MacOS, you can install it with homebrew via brew install xquartz. Otherwise, you can install it from their website.
  2. The version of OCaml I used was 4.12.0, so ensure you have an environment with that version.
  3. Install OCaml's graphics module with opam install graphics.
  4. Run make all.
  5. Run ./main.byte.

To zoom into an area, just click on the screen once and then again to denote the area. Press q to quit or e to enhance the picture by increasing the number of iterations. You can adjust the resolution, coloring, function to be used for fractal generation, and complex region to calculate. All configuration settings are in config.ml.

Some pictures generated with the software:

Screenshot 2023-04-30 at 9 43 59 PM

Screenshot 2023-05-02 at 5 03 21 PM

Screenshot 2023-05-02 at 5 08 21 PM

Screenshot 2023-05-02 at 5 10 06 PM

Screenshot 2023-05-02 at 5 17 52 PM

Screenshot 2023-05-02 at 5 20 19 PM