GithubHelp home page GithubHelp logo

fractals's Introduction

Fractals

Experiments with generating escape time fractals in julia

In general escape time fractals are generated by plotting the set of points in the complex plane where iteration of some function $f_c(z)$, $$z_{n+1} = f_c(z)$$ does not diverge to infinity.

Depending on the function $f_c$, different fractals are generated.

Colorings can be added e.g. based on the number of iterations is takes a point to escape (see histogram colouring).

Alternatively, colours can be selected from a map (such as an image) using an orbit trap.

Mandelbrot set

$$f_c(z) = z^2 + c$$ iterated from $z_0 = 0$

Julia set

If $c$ is held constant and $z$ varied, $$f_c(z) = z^2 + c$$ the corresponding Julia set is generated. Differing values of $c$ give different Julia sets

Burning ship fractal

$$f_c(z) = (|Re(z)| + i|Im(z)|)^2 + c$$ iterated from $z_0 = 0$

Buddhabrot

Probability distribution of the orbits of points that do escape to infinity under iteration of the function: $$f_c(z) = z^2 + c$$

Using different numbers of maximum iterations for each channel in an RGB image: buddhabrot

Animations

We can animate the julia sets by varying $c$ with time, e.g. moving the point with a lissajous curve: animated julia set

Similarly, using an image for an orbit trap and using the same trajectory of $c$: animated julia set with orbit trap of an image of a dog

fractals's People

Contributors

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