Skip to content

ishiikurisu/mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandelbrot Fractal

This is just me having fun with the Mandelbrot fractal, my favorite piece of maths ever.

Originally made using Processing, I switched to Go so I could do faster arbitrary precision arithmetics.

See it in action!

Instructions

Create a folder named out in this repository's root:

mkdir out

Adjust the parallel execution settings for your context by tweaking the config.json file.

{
    "Height": "900.0",
    "Width": "1600.0",
    "TargetX": "-1.62917",
    "TargetY": "-0.0203968",
    "Factor": "0.9",
    "MaxItr": 1024,
    "NumberOfIterations": 1000,
    "NumberOfSkips": 30,
    "TotalGroups": 3
}

Take a look below for an explanation about each parameter.

Now, just execute the project:

make video

It takes a lot of time to generate one frame, so I recommend you grab some coffee and donuts while you wait for the task to complete.

Execution Parameters

  • Height and Width: the viewport size in pixels
  • TargetX and TargetY: the target point coordinates
  • Factor: how much to zoom in each iteration
  • MaxItr: how many iterations to determine whether a point is in the fractal or not
  • NumberOfIterations: How many zoom iterations to perform.
  • NumberOfSkips: How many zoom iterations should be skipped from the beginning. That's useful to execute the program in discrete batches instead of a single large one.
  • TotalGroups: how many threads to use

About

Mandelbrot fractal zoom

Topics

Resources

Stars

Watchers

Forks