Fract-ol is a project completed during my studies at School 42. The goal of this project is to explore and render various types of fractals using a graphical library (MiniLibX). The program allows for real-time interaction with fractals, including zooming, shifting, and customizing color schemes.
This project implements the rendering of mathematical fractals such as the Mandelbrot set, Julia set and the Barnsley Fern. It allows for smooth zooming and color transitions, offering users the ability to explore the depth of fractal patterns. The fractals are displayed in an interactive window, where users can navigate with keyboard and mouse inputs.
Zoom using mouse whell
Multiple fractal types
Adjustable iterations for more detail
100% customizable color schemes
The project is written in C and requires the cc compiler.
- Compiling the library
To compile the fractal viewer, run the following command in the project directory:
$ make- Running the program
Once compiled, run the program and specify which fractal you want to explore:
$ ./fractol <fractal_name>Examples of fractal names available to be presented on the program:
mandelbrot
julia
fern
$ ./fractol mandelbrotNote that if you chose the julia set to be displayed, you must explicitly put in the desired arguments (x and y coordinates) that you want in order to see the exact julia set you have in mind.
$ ./fractol julia -0.835 -0.2321This will open a window displaying the fractal on the argument. You can interact with it by using your mouse to zoom, keyboard arrows to move around the fractal and numbers/space buutons to customize collors..
-
Controls
- Make sure you have the necessary MiniLibX library installed.
- Barnsley Fern is a probability fractal, so you cant zoom in.
- The project supports multiple fractal types, each with crazy and unique characteristics. Experiment with different settings to discover fascinating fractal details!


