Giter VIP home page Giter VIP logo

fract-ol's Introduction

Fract-ol

42-BadgeC-Badge42Unlicense

Description

The term fractal was first used by mathematician Benoit Mandelbrot in 1974, he based it on the Latin word fractus, meaning "broken" or "fractured". A fractal is an abstract mathematical object, like a curve or a surface, which has a similar pattern whatever the scale.

Fract-ol however, is just a fractal browser.

Goals

This is the first project in which we use the graphical library miniLibX. This project also gives the opportunity to make use of the mathematical notion of complex numbers and to take a peek at the concept of optimization in computer graphics.

Mandatory

• The software should offer the Julia set and the Mandelbrot set.

• Mouse wheel zooms in and out.

• Use at least a few colors to show the depth of each fractal.

• A parameter is passed on the command line to define what type of fractal will be viewed. If no parameter is provided, or if the parameter is invalid, the program displays a list of available parameters and exits properly.

Bonus

• One more different fractal.

• The zoom follows the actual mouse position.

• In addition to the zoom: moving with the arrows.

• Make the color range shift.

Requirements

Minilibx

Install its dependencies:

sudo apt-get install gcc make xorg libxext-dev libbsd-dev

Clone minilibx repo:

$ git clone https://github.com/42Paris/minilibx-linux.git

Run the config tool:

./configure

For more details, check miniLibx repository Readme.

Usage

To compile the program, run:

$ make

Execute the software, providing the name of the fractal set and the seed, when necessary:

$ ./fractol Julia -0.73 0.14

Avaliable sets:

Mandelbrot
Julia
Celtic
Burning-Ship

Controls:

[W][A][S][D]: 		move screen
[E][Q]|[SCROLL]:	zoom in and out
[+][-]:			control iteration
[C][V]:			control seed (for Julia sets)
[SPACE]:		psychedelite
[R]:			reset fractal
[H]:			show menu

License

This work is published under the terms of 42 Unlicense

fract-ol's People

Contributors

dpiza avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.