Frac-ol is a 42 school project whose goal is to create a fractal explorer. The program will display different fractals and allow the user to zoom and change the color of the fractal.
- Clone the repository with
git clone https://github.com/iLucasPires/fract-ol.git
- You need to use MiniLibX
- Run
make
to compile the executable - Run
./fractol [fractal]
to execute the program
- Clone the repository with
https://github.com/42Paris/minilibx-linux.git
- Run
make
to compile the library need to install libbsd-dev libXext-dev - Copy the library
libmlx.a
from the root of the home directory - Copy the header file
mlx.h
from the root of the home directory
sudo apt-get install gcc make xorg libxext-dev libbsd-dev
cp libmlx.a /usr/local/lib/
cp mlx.h /usr/local/include/
- The executable file must be named fractol.
- The project must be written in accordance with the Norm.
- The executable must be able to display at least the Mandelbrot and Julia sets.
- The executable must be able to zoom in and out of the fractal using the mouse wheel.
- The executable must be able to change the color palette.
- The executable must be able to move the fractal with the arrow keys.
- The executable must be able to lock the fractal on a point with the mouse.
- The exacutable must be able to display at least one other fractal of your choice.
The following controls are available:
Controls | Action |
▲ ◄ ▼ ► | Move |
scroll wheel | Zoom in and out |
esc or close window | Quit fract-ol |
C | Change color (only in Bonus) |
Display the Mandelbrot set
./fractol mandelbrot
Display the Julia set
./fractol julia number number
Display the Burning Ship set
./fractol burningship