GithubHelp home page GithubHelp logo

bensouchet / fractol Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 2.0 205 KB

School Project - Graphic - Fractals Explorer

License: Other

Makefile 1.43% C 90.62% Objective-C 7.32% C++ 0.63%
school42 fractal fractol hsv mandelbrot mandelbrot-fractal julia-fractal julia

fractol's Introduction

Fractol

Fractol is a program developed for my learning course at 42 school for the exploration of Fractals. Several options are available (see Keyboard shortcuts or/and Mouse controls sections for more infos) :

  • Zoom and unzoom
  • Change the number of iterations
  • Move the current fractal
  • Rotate by step of 90°
  • Edit the display gradient
  • Navigate between the three fractals
  • Edit the shape of the fractal with the position of the mouse (only available with the fractal Julia)

Install & launch

git clone https://github.com/BenjaminSouchet/Fractol ~/Fractol
cd ~/Fractol && ./fractol Julia

You have to launch the program with a parameter. This is the name of the fractal you would like to open at the execution of the program. This parameter as to be the name of a valid fractal (Julia, Mandelbrot or Tricorn).

Example :

Open the Mandelbrot fractal ⇣

./fractol Mandelbrot

Keyboard shortcuts

Description  Key(s) 
Close the program (aka quit/exit)  esc 
Reset all the changes made for this map  clear 
Change the display gradient (aka change color)  shift 
Enable or disable the mouse controls  M  or  S 
Increase the global size of the fractal (aka zoom)  + 
Decrease the global size of the fractal (aka unzoom)  - 
Move the fractal to the up (aka move up)  ▲ 
Move the fractal to the down (aka move down)  ▼ 
Move the fractal to the left (aka width move left)  ◄ 
Move the fractal to the right (aka move right)  ► 
Increase the number of iterations  W 
Decrease the numbre of iterations  Q 
Clockwise rotation on the Z axe  T 
Counter clockwise rotation on the Z axe  R 
Display the Julia fractal  1 
Display the Mandelbrot fractal  2 
Display the Tricorn fractal  3 

Mouse controls

Description  Control(s) 
Increase the global size of the fractal at the position of the cursor  left button 
Decrease the global size of the fractal at the position of the cursor  right button 
Increase the global size of the fractal (aka zoom)  scroll up 
Decrease the global size of the fractal (aka unzoom)  scroll down 

Contact & contribute

If you want to contact me, or fix/improve Fractol, just send me a mail at [email protected]

fractol's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kikoman90 kuenane

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.