GithubHelp home page GithubHelp logo

fractal's Introduction

Fractals in Python

image

Repository with Python code that renders fractals, compatible with both Python 2.7 and 3.2+, showing and saving files with Matplotlib.

For more information about the maths used for fractals (as well as its history), see the Wikipedia pages about the Julia set and Mandelbrot set.

Examples

  1. Julia fractal

    python -m fractal julia -0.644 --size=300x200 --depth=25 --zoom=0.6 --show

    image

  2. Julia fractal

    python -m fractal julia -0.7 +0.27015 j --size=500x300 --depth=512 --zoom=0.6 --show

    image

  3. Julia fractal

    python -m fractal julia -0.7102 +0.2698 j --size=500x300 --depth=512 --zoom=0.65 --show

    image

  4. Julia fractal

    python -m fractal julia -0.77777 -0.25 j --size=527x331 --depth=200 --zoom=0.7 --show

    image

  5. Julia fractal

    python -m fractal julia -0.8 +0.156 j --size=400x230 --depth=50 --zoom=0.65 --show

    image

  6. Julia fractal

    python -m fractal julia -0.8 +0.156 j --size=500x300 --depth=512 --zoom=0.6 --show

    image

  7. Julia fractal

    python -m fractal julia -1.037 +0.17 j --size=600x300 --depth=40 --zoom=0.55 --show

    image

  8. Mandelbrot fractal

    python -m fractal mandelbrot --size=300x300 --depth=80 --zoom=1.2 --center=-1x0 --show

    image

  9. Mandelbrot fractal

    python -m fractal mandelbrot --size=400x300 --depth=80 --zoom=2 --center=-1x0 --show

    image

  10. Mandelbrot fractal

    python -m fractal mandelbrot --size=500x500 --depth=256 --zoom=6.5 --center=-1.2x0.35 --show

    image

  11. Mandelbrot fractal

    python -m fractal mandelbrot --size=500x500 --depth=80 --zoom=0.8 --center=-0.75x0 --show

    image

  12. Mandelbrot fractal

    python -m fractal mandelbrot --size=600x600 --depth=256 --zoom=90 --center=-1.255x0.38 --show

    image

Parameters

Examples above can also be done with a --output fractal.png parameter, which saves the example to a image file, while --show just shows the raster fractal image on the screen (both parameters can be used together). For more help, see:

python -m fractal --help

Which shows all options available. To see all colormaps names available in Matplotlib, see the colormaps on the scipy wiki or type in a Python shell:

[m for m in __import__("pylab").cm.datad if not m.endswith("_r")]

License is MIT, see COPYING.txt for more details. By Danilo J. S. Bellini

fractal's People

Contributors

danilobellini 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.