Skip to content

This repository contains code for visualizing fractals from Chaos Theory.

Notifications You must be signed in to change notification settings

neosoumik/fractals

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fractals

This is the repository contains the code for visualising the fractals which are never-ending patterns.

The Chaos Game Video which got me interested in the whole Chaos theory and fractals.

Fractals are infinitely complex patterns that are self-similar across different scales. Driven by recurssion, fractals are images of dynamic systems- the picture of Chaos.

Geometrically, they exist between our familiar dimensions.

This code uses pygame for rendering purpose. So, make sure to install it first.

Contents

  • Barnsley Fern: The folder contains the result images and the scripts to run it. Run render.py to run the code and visualise the formation of the fern in realtime.
    There are two types of fern which can be rendered:
    i> The original variant
    ii> The mutant variant
    You can make the changes in render.py to render different ferns.

Here are the two results:
Original Fern Mutant Fern

  • Mandelbrot Set: The folder contains the result image and a script to run it. Just run the Mandelbrot Set.py to run the code and visualise it's formation.
    You can make changes in it like increasing/decreasing the minimum and maximum values of x and y.
    You can also change the number of maximum iterations per complex number. The rendering will slow down but if you are patient enough, you will get better results.

Here's a result obtained within 5 minutes of rendering with maximum iterations of 255: Mandelbrot Set plot

I will be adding more types of fractals which are interesting and if I am able to code it 😅

About

This repository contains code for visualizing fractals from Chaos Theory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%