This is a repository for the 42 school project of fract-ol. The point for this project is to create a program that renders different fractals.
According to Wikipedia a fractal is: "In mathematics, a fractal is a geometric shape containing detailed structure at arbitrarily small scales, usually having a fractal dimension strictly exceeding the topological dimension".
Basically a fractal is a geometric figure with a never ending pattern.
For the mandatory part, the objective was to use mlx library to create, in a window the Mandelbrot set and the Julia set.
To run the mandatory part in the project directory write: make all.
The project runs like this:
./fractol FRACTAL
For the mandatory part for both fractals here are the options:
- To change the window size run the program with iwNUMBER and ihNUMBER (in what order you want);
For example: ./fractol mandelbrot iw300 ih500
- The mousewheel zooms in and out in the center;
- ESC and the cross of the window closes the window.
Mathematical formula: f(z) = z² + C (iterating different values of C, which is a complex number)
Mathematical formula: f(z) = z² + C -> Here the C is constant.
For the Julia set you can also change the image by runing the program like this:
./fractol Julia cxNUMBER cyNUMBER -> the cx nuber should be between -2 and 1 and the cy should be between -1,5 and 1,5!
To compile the bonus: make bonus.
For the Bonus you can run the program only by:
./fractol
Then this window will be displayed and you should input in the terminal one of the options (numbers or fractals).
After reading the input from the terminal we have this prompt:
This window shows you the rendering options!
zoom
zoom + changing inputs and colors!
The Burning Ship is a fractal that works with the module of mandelbrot!
make all - creates executable
make bonus - creates executable for bonus
make clean - clean the objects
make fclean - clean executable and any library, also runs clean
make re - runs clean and fclean and then runs all to create the executable
make rebonus - runs clean and fclean and then runs all to create the executable for bonus
Thanks for reading!!
you can slack me: idias-al