https://github.com/rogeriols/fractol-42sp
One of the first graphical projects at 42 school, fract-ol introduces us to 2D programming with fractal generation.
https://github.com/rogeriols/fractol-42sp
42 42projects 42school c fractal-algorithms fractal-images fractals fractol fractol-julia fractol-maldelbrot fractol-tricorn hexadecimal-color
Last synced: about 2 months ago
JSON representation
One of the first graphical projects at 42 school, fract-ol introduces us to 2D programming with fractal generation.
- Host: GitHub
- URL: https://github.com/rogeriols/fractol-42sp
- Owner: RogerioLS
- License: mit
- Created: 2023-11-19T19:26:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-01T18:46:19.000Z (4 months ago)
- Last Synced: 2025-02-13T14:53:40.475Z (4 months ago)
- Topics: 42, 42projects, 42school, c, fractal-algorithms, fractal-images, fractals, fractol, fractol-julia, fractol-maldelbrot, fractol-tricorn, hexadecimal-color
- Language: C
- Homepage:
- Size: 5.04 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :clipboard: Fractol | 42 SP












---

- Actual Status : finished.
- Result : Approved with 120 points ✅## 📜 About Project
> One of the first graphical projects at 42 School, fract-ol generates beautiful fractals from the complex numbers of \
> an iterative mathematical construct. A fractal is a fragmented geometrical figure that infinitely repeats itself at \
> smaller scales. This project uses the school's graphical library, MiniLibX.For detailed information, refer to the [**subject of this project**](README_files/fractol_subject.pdf).
🚀 TLDR: The fract-ol project is one of the three "beginner" graphical projects of the
cursus. It teaches you about using graphic library, advanced math, and more.## 📑 Fractals List
The program supports these fractal sets:
| Name | Formula |
|:-----------------:|:--------------------------------------------------------------------------------------------------:|
| Mandelbrot | $z_{n+1} = z_n^2 + c, z_0 = 0$ |
| Julia | $z_{n+1} = z_n^2 + c, z_0 = c$ |## 🎮 Controls
The program supports the following controls:
| Key | Description |
|:-------------:|:---------------------------------------:|
| ESC | Close the program window |
| Mouse Scroll | Zoom in and out of the fractal |
| ⬆️ ⬇️ ⬅️ ➡️ | Change the viewpoint |## 👨💻 Usage
### RequirementsThe program is written in C language and thus needs the **gcc compiler** and some standard **C libraries** to run.
### Instructions
**1. Compiling the program**
To compile the program, run:
```shell
$ git clone https://github.com/RogerioLS/Fractol-42sp/tree/main && cd Fractol-42sp && make
```**2. How to run the program**
Run the executable too see the help message:
```shell
./fractolPlease enter:
"./fractol mandelbrot" or
"./fractol tricorn" or
"./fractol julia 0.285 +0"
"./fractol julia 0.285 +0.01"
"./fractol julia 0.45 +0.1428"
"./fractol julia -0.835 -0.232"
"./fractol julia −0.7269 +0.1889"
"./fractol julia 0.35 +0.35"
"./fractol julia 0.4 +0.4"
```> [!NOTE]
> Because of 42 School norm requirements:
> * Each function can't have more than 25 lines of code.
> * All variables are declared and aligned at the top of each function.
> * Project should be created just with allowed functions otherwise it's cheating.