Skip to content

Fract`ol is one 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. It's really inspiring to dive into this topic and create some sort of psychedelic effects on the screen.

Notifications You must be signed in to change notification settings

tjensen42/42-fractol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-fractol

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.

🧭 Start here

The only supported and tested operating system to compile this programm is macOS.

  1. Clone Repo and run: make release
  2. 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

🕹 Take the control:

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


Sample output:

Startup Screen / Fractal Mandelbrot

Seahorse paradise in Mandelbrot

Some random are in a fractal



*All 42 projects must be written in C (later C++) in accordance to the 42 School Norm.

Sample restrictions:

  • 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

About

Fract`ol is one 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. It's really inspiring to dive into this topic and create some sort of psychedelic effects on the screen.

Topics

Resources

Stars

Watchers

Forks