Mandelbrot & Julia fractal explorer written in C.
Fractol is a graphical program that lets you explore two classic fractals:
- Mandelbrot set
- Julia set
It uses complex number iterations and a low-level graphics library to render fractals in real time, allowing zooming, panning, and color interaction.
- Real-time rendering of Mandelbrot and Julia sets
- Zoom and pan using the mouse
- Color scheme variation
- Configurable parameters for Julia set
- Keyboard / mouse event handling for interactive exploration
-
Clone the repository:
git clone https://github.com/oadams38/Fractol.git cd Fractol -
Make sure you have a MiniLibX-compatible environment installed.
-
Build the project with the command "make"
###To display the Mandelbrot set:
./fractol Mandelbrot
###To display the Julia set (with custom seed):
./fractol Julia <real_part> <imaginary_part> Example: ./fractol Julia 0.285 -0.01
Mouse Wheel: Zoom in / out Arrow Keys: Pan the view ESC: Exit the program
[Optional] Space: Reset view s: Smoother gradient 1-2 keys: Change colour scheme