Skip to content

Darkbuilder646/Fractal-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Static Badge Static Badge Static Badge GitHub last commit Project Status

Fractal in Python

Table of Contents

Project Objective

The goal of this little project is to recreate factals (the Mandelbrot and Julia set) with my current knowledge of Python. I might use other languages if I encounter limitations in computation or visualization (possibly using shaders later on).

Python Libraries Used

  • Numpy
  • Matplotlib

Visual Goals

Mandelbrot Set

The ultimate goal of this project is to achieve a visual aspect resembling the one above initially. To accomplish this, I am utilizing the Matplotlib library to quickly create an initial visual representation using its powerful graphing capabilities. Matplotlib provides a solid foundation for visualization, allowing me to visualize fractals efficiently.

As the project progresses, if I encounter certain limitations or if I aim to enhance the visual aesthetics further, I may explore additional visualization techniques or potentially incorporate advanced features such as shaders. The flexibility of Matplotlib allows me to start with a strong visual foundation and expand upon it as needed.

Project Status

Project Devlog :

  • Add some color and optimisation

Color Mandelbrot

  • Drawing the Mandelbrot set with Matplotlib.pyplot

Result Mandelbrot

  • Calculating the value of Zn on the Mandelbrot set
def Computes_Z(complex, max_iterations = 100):
    z = 0
    for i in range(max_iterations):
        z = z * z + complex
        yield z

def ComputesMandelbrot(complex, max_iterations = 100):
    for n, z_nbr in enumerate(Computes_Z(complex, max_iterations)):
        if(abs(z_nbr) > 2.0):
            return n
        
    return max_iterations

About

Python project where I trying to create fractals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages