Code Monkey home page Code Monkey logo

fractals-python's Introduction

Fractal Visualizations in Python

Julia Fractal

The Julia fractal is a popular model for chaotic behaviour, in which a small perturbation causes a drastic change to the value of a dynamic system.

One popular way to model the Julia set is the number of iterations needed for a process to reach a certain absolute value starting from some given complex number

Each point (x,y) in the 2D image is mapped to a particular value of z and the brightness/intensity of each point corresponds to the number of iterations taken by the above process

Different fractal patterns can be generated by changing the initial conditions such as the value of the constant c and the threshold value of the fractal generating process described above.

Barnsley Fern

The Barnsley Fern uses a set of four affine transformations (an affine transformation is a transformation on an affine space, ie. a space which does not have a particular reference point or origin from which distance is measured, but rather distance is measured as the difference of two points) on the 2D Euclidian plane.

The four transformations are to be applied with differing probabilites, hence the use of the randint() function to generate an integer between 1 and 100 from an uniform distribution.

The initial start point is considered to be the point (0,0) in 2D Euclidean space

fractals-python's People

Contributors

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