Skip to content

sabdulki/42AD-fractol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rendering fractols

The programm renders Mandelbrot and Julia fractols using mlx library.

The program was written as part of a 42 programming school project, in particular 42 Abu Dhabi school.

Table of Contents

Installation && How to compile

git clone https://github.com/sabdulki/fractol_42.git
cd fractol_42
make re

For Mandelbrot farctol please use:

./fractol mandelbrot

For the Julia:

./fractol julia x y

Instaed of x and y please type any numbers betwen 2 and -2 for both paramenetrs. For the most beautiful and fascinating renderings I suggest you to try these:

  • -0.800000 0.172308
  • -0.781538 0.166154
  • -0.800000 0.184615
  • 0.375385 0.369213
  • -0.553846 -0.516923
  • -0.800000 -0.190769
  • And whatether you want from 2 to -2.

Features

make re && make bonus```
```bash 
./fractol julia 1 1

The feature is that the fractol is changing by mouse movement. Hover the mouse over the programm window and you'll see a kind of magic ✨

Buttons

Don't hesitate to press some buttons:

  • 'W': the body of fractol becomes white

  • 'B': the body of fractol becomes black

  • 1 - 4: the fractol chages the colours 1️⃣ 2️⃣ 3️⃣ 4️⃣

  • Don't forget about the arrows: press up, down, left, right - the image will be shifting ⬆️ ⬇️ ⬅️ ➡️

  • And the most important - the mouse wheel. Try to zoom in and zoom out - you'd like it! 🌀

The programm suppoused to zoom infinetely, so try it out 😉

Disclamer It's not recomended to use features described above while rendering Julia fractol with mouse movement. It could crash the programm or make it a bit slowly.

Some examples

mandelbrot mandelbrot zoomed julia julia

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published