Coder Social home page Coder Social logo

fractol's Introduction

fractol

Fract'ol fract-ol 42 project badge

Fractol is a 42 School project. The project designed to render and display various types of fractals in real-time. Fractals are complex mathematical structures that exhibit self-similarity at different scales. This project provides an interactive platform for users to explore and appreciate the beauty of these intricate mathematical patterns.

Quick Start

To quickly get started with Fractol, follow these steps:

  1. Clone the Repository
  2. Navigate to the Project Directory
  3. Build the Project
  4. Run Fractol
https://github.com/sergii-moroz/fractol.git
cd fractol
make
./fractol 1

Usage

for fractals type 1 - 3

./fractol 1

for Julia

./fractol 4 -0.6 0.6

Controls

ESC - quit the programm

arrows or A, W, S, D - move screen

SPACE - change color palette

1 to 0 - change complex constant $C$ (only for Julia fractal)

Numpad

+, - - increase or decrease the picture quality (number of iteration)

1 - Mandelbrot: $Z_{n+1} = Z_n^2 + C$

2 - Mandelbrot: $Z_{n+1} = Z_n^4 + C$

3 - Burning ship: $Z_{n+1} = |Z_n|^2 + C$. It really means $x + i y \to (|x| + i |y|)^2 + (a + i b)$. When expanded using usual algebra (including $i^2$ = -1), you get $x \to x^2 - y^2 + a$ and $y \to 2 |x| |y| + b$. link

4 - Julia: $Z_{n+1} = Z_n^2 + C$

Usefull links

Lodev Julia and Mandelbrot Tutorial โญ

Fractals Generated by Complex Numbers

fractol's People

Contributors

sergii-moroz 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.