Coder Social home page Coder Social logo

fractalsgen's Introduction

FractalsGen

This program generates beautiful fractal images using the following functions:

  • Family00: $$z = x^2(1+Re(Q)z^2)/(1-Re(Q)z^2) + C$$
  • Family01: $$z = x^2 + C$$
  • Family02: $$z = x^n + C$$
  • Family03 (Newton method): $$z = z - \frac{x^n + C}{nx^{n-1}}$$
  • Family04 (Newton method): $$z = z - \frac{x^n + Qz + C}{nx^{n-1}+Q}$$

Actually, some functions are special cases of other functions, for example, Family01 is a special case of the function Family00 when Re(Q) = 0, this is so for optimization purposes. You can change the different parameters to get very impressive images.

How to build de app?

Just use QtSDK-6.4.* and open qtapp/CMakeLists.txt with QtCreator tool. It doesn't need any external.

plot.py script

You can save the raw data from the FractalGen application and use the plot.py script to display the fractal using Matplotlib's palettes.

usage: plot.py [-h] [--cmap CMAP] [--log] [--save_img SAVE_IMG] fname

positional arguments:
  fname                Input file

options:
  -h, --help           show this help message and exit
  --cmap CMAP          Colormap
  --log                Use log scale
  --save_img SAVE_IMG  Save image

Gallery

FractalGen:

Some examples:

TO DO:

  • Add other color maps
  • Add new fractals

fractalsgen's People

Contributors

otre99 avatar

Stargazers

 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.