Fract`ol is on of the first computer graphics projects in the 42 core curriculum, where you work with the miniLibx-Library. The project is meant to create graphically beautiful fractals. Its really inspiring to dive into this topic and create some sort of psychedelic effects on the screen.
For further information about this topic I recommend to read this Bachelor Thesis from Luc de Jonckheere. It describes methods to generate the Mandelbrot and Julia sets efficiently and how to implement a good coloring. For me this thesis was really helpful to get a better understanding of the project.
The only supported and tested operating system to compile this programm is macOS
.
- Clone Repo and run:
make release
- To see the possible arguments to run it, just start the "fractol":
./fractol
General example: ./fractol mandelbrot
- [julia-fractal] start the programm with 2 additional arguments, for example:
./fractol julia 0.28 0.008
Key / Input | What it does |
---|---|
ARROWS |
move through the picture |
. |
change color scheme |
& - |
change the max iteration depth |
SPACE BAR |
[just julia-fractal] hit it ones and you be able to move the mouse to change the julia constant |
Num Keys (1, 2, 3, ...) |
change into different fractals |
R |
reset to default parameters |
ESC |
exit the Programm |
*All 42 projects must be written in C (later C ) in accordance to the 42 School Norm.
- All variables have to be declared and aligned at the top of each function
- Each function can not have more then 25 lines
- Projects should be created with allowed std functions otherwise it is cheating