Coder Social home page Coder Social logo

yorknez / fractals-madness Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 115.39 MB

A C++ program that aims to generate fractals based on a recurence of type Zn = Zo^2 + c.

C++ 51.23% Shell 0.10% C 1.86% Objective-C 0.01% CMake 0.03% M4 0.01% CSS 0.12% Perl 0.01% Batchfile 0.01% HTML 45.46% Max 0.01% XSLT 0.15% Python 0.44% Cuda 0.01% Makefile 0.29% Assembly 0.08% JavaScript 0.11% TeX 0.01% CWeb 0.05% Tcl 0.01%

fractals-madness's Introduction

About fractals-madness

A C++ program that aims to generate the Mandelbrot Set and other fractals based on a recurence of type Zn = Zn-1^2 + c.

Prerequisites:

In order to run this you need g++.

Compiling and running:

# Windows
g++ -std=c++11 src/*.cpp -Iinclude -Ilib/boost -Ilib/SDL2/x86/include -lmingw32 -lSDL2main -lSDL2 -Llib/SDL2/x86/lib -o fractal

# Linux
g++ src/*.cpp -Iinclude -Ilib/boost `sdl2-config --libs` -o fractal && ./fractal

Available commands:

  • Scroll Up - zoom in
  • Scroll Down - zoom out
  • R - reset zoom and prerendering
  • P - toggle prerendering on or off

Prerendering

Prerendering will precompute the first 50 (default) zooms on the location of the cursor at the moment of turning it on. When turned off it will simply redraw the fractal in the initial position.

Note: Do not spam commands.

fractals-madness's People

Contributors

yorknez avatar

Stargazers

Cristian Andrei avatar Călin Balan 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.