Skip to content

A little program that i created to plot Mandelbrot and Julia sets.

License

Notifications You must be signed in to change notification settings

ViniciusWerneck123/Fractals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fractals

Fractals is a program to create images of fractals. Until this stage, the ones available are the julia and mandelbrot fractals. There is a parameter available to create animated fractals like ones given below.

Requirements:

matplotlib
numpy

Here are some examples:

Julia set for c = 1 - golden ratio:

fractal(fractal_type='julia', c=complex(-0.64, 0), size='800x450')

c=-0 64

Julia set for c = 0.285 - 0.01i

fractal(fractal_type='julia', c=complex(0.285, -0.01), size='800x450')

Fig1

Animated version

fractal(n_iter=100, fractal_type='julia', c=complex(0.285, -0.01), size='800x450', animated=True)
#Output
************************ Fractal generator ************************
Generating fractal...

Number of iterations: 100
Elapsed time: 01:35 s
*******************************************************************

Anim1

Plotting the Mandelbrot set:

fractal(fractal_type='mandelbrot', cmap='binary_r', size='800x450', converging_color=[1, 1, 1])
#Output
************************ Fractal generator ************************
Generating fractal...

Number of iterations: 130
Elapsed time: 00:05 s
*******************************************************************

mandelbrot

Animated version:

fractal(n_iter=50, fractal_type='mandelbrot', cmap='binary', animated=True)
#Output
************************ Fractal generator ************************
Generating fractal...

Number of iterations: 50
Elapsed time: 00:13 s
*******************************************************************

mandelbrot

License

License is MIT.

About

A little program that i created to plot Mandelbrot and Julia sets.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages