Skip to content

This project searchs for ghaphically beautiful fractals

License

Notifications You must be signed in to change notification settings

PaLucena/fract-ol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fract'ol

Description

fract'ol is a project from the 42 cursus that involves creating a program to visualize various fractals, such as the Mandelbrot set, the Julia set, and others. The main objective is to learn more about complex numbers, fractal mathematics, and graphical rendering using the MLX42 library.

Table of Contents

Requirements

To compile and run the project, you will need:

  • A Unix operating system (Linux or macOS).
  • gcc or any C compiler.
  • Make.
  • MLX42 library.
  • GLFW library.

Installation

Clone the project repository and navigate to the main directory:

git clone https://github.com/PaLucena/fract-ol.git
cd fract-ol

Compile the project using the included Makefile:

make

This will generate the fractol executable in the current directory.

Usage

To start the fractal visualizer, run the following command:

./fractol <fractal_name>

Where <fractal_name> can be one of the following:

  • mandelbrot
  • julia
  • burningship

Example:

./fractol mandelbrot

Features

The fract'ol program supports various features to enhance the fractal visualization experience:

  • Zoom in and out with the mouse scroll.
  • Move the view using the arrow keys.
  • Change the color scheme with the numeric keys.
  • Switch between different fractals.

Project Structure

The project is organized into the following files and directories:

  • src/: Contains the source code of the fractal visualizer.
  • include/: Contains the header files.
  • Makefile: Build script to generate the executable.
  • README.md: Project documentation.

License

This project is licensed under the MIT License. See the LICENSE file for more details.