Skip to content

Fractal is a graphic project using mini mlx for the 42 school. The project involves generating fractals and enabling their exploration and manipulation through a graphical interface.

License

Notifications You must be signed in to change notification settings

iLucasPires/fract_ol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OS Language Grade Status

Fract-ol

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.

How to use

  • 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

Install MiniLibX

  • 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/

Mandatory part

  • 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.

Bonus part

  • 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.

Controls

The following controls are available:

ControlsAction
 ▲  ◄  ▼  ► Move
 scroll wheel Zoom in and out
 esc  or close windowQuit fract-ol
 C Change color (only in Bonus)

Example

Display the Mandelbrot set

./fractol mandelbrot

Example

Display the Julia set

./fractol julia number number

Example

Display the Burning Ship set

./fractol burningship

Example

About

Fractal is a graphic project using mini mlx for the 42 school. The project involves generating fractals and enabling their exploration and manipulation through a graphical interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published