Skip to content

This project is about creating graphically beautiful fractals

License

Notifications You must be signed in to change notification settings

pix3l-p33p3r/fract-ol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fract'ol
fract'ol

This project is meant to create graphically beautiful fractals

In this repo you will find all the codes developed during the fract'ol project, both mandatory's part and bonus.


Final score

Completed + Bonus


Fract-ol mono-colored Mandelbrot

Usage


Note that this project was tested on MacOS only. It may run on Linux with small adjustments to the Makefile, as described in hsmits and jvan-sni's 42 Docs.


Installing and Compiling Fract-ol

Clone the repository, including the embedded MiniLibX repository:

git clone https://github.com/pix3l-p33p3r/fract-ol.git && cd fract-ol 

You will now be in the correct directory for compilation. Compile with make. Fract-ol should now be ready!

Executing Fract-ol

At execution time, you must specify a fractal to display. You may also provide other optional parameters:

./fractol <number>

Types are :

  • 1: Mandelbrot fractal
  • 2: Julia fractal
  • Requires additional parameters for imaginary and real constants:
    • <imaginary_constant>: Imaginary part of the Julia set constant
    • <real_constant>: Real part of the Julia set constant
  • 3: 4th Mandelbrot (Burning Ship) fractal

For the Julia fractal set (and only this set), two additional parameters can be specified as calculation values. These represent a complex number that will change the shape of the Julia fractal. They must be fractional numbers between 2.0 and -2.0. For example:

./fractol 2 0.285 -0.01

Fract-ol Controls

While Fractol is running, the following set of controls are available:

ControlsAction
 ▲  ◄  ▼  ► Move
 scroll wheel Zoom in and out (zoom follows the actual mouse position)
 r ,  g ,  b Change color scheme (r for red, g for green, b for blue)
 esc  or close windowQuit fract-ol

SRC_IMG

Mandelbrot set

Fract-ol purple and yellow striped Mandelbrot Fract-ol red bllue and green striped Mandelbrot Fract-ol sun crest purple Mandelbrot

Julia set

Fract-ol purple green and yellow Julia Fract-ol red swirl Julia Fract-ol blue snowflake Julia

Burning ship set

Fract-ol golden burning ship

About

This project is about creating graphically beautiful fractals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published