Skip to content

suuuehgi/mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandelbrot Calculator

Produce beautiful fraktals with Python using numba parallel optimization.

Dependencies

  • Python3
  • numba
  • numpy, matplotlib, argparse

Examples

Progression of exponent

4k Background

$ time python3 mandelbrot.py -o example_bg4k.png --maxiter 1000 --saturation=8 point --point=-.736:-.2086 -R 3840x2160 -F 10
python3 mandelbrot.py -o examples/example_bg4k.png --maxiter 1000  point  -R   13,82s user 0,47s system 127% cpu 11,189 total

Square

$ time python3 mandelbrot.py -o example_star.png --colormap=BuPu --maxiter 2000 --coloroffset=.1 --saturation=4.3 point --point=-.7379995:-.208601 --pixel 4000 -F 10 --power 5
python3 mandelbrot.py -o example_star.png --colormap=BuPu --maxiter 2000       35,12s user 0,83s system 243% cpu 14,777 total

Phone

Need a new background image (Samsung Galaxy S2, 480x800)?

$ time ./mandelbrot.py -o example_cellphone_big.png --maxiter 1500 --colormap=PiYG --saturation=8 point --point=-.51:-.61 -R 960x1600 -F 5 --power 6
./mandelbrot.py -o example_cellphone_big.png --maxiter 1500 --colormap=PiYG    2,61s user 0,12s system 116% cpu 2,338 total
$ convert example_cellphone_big.png -resize 480 example_cellphone.png

About

Calculate mandelbrot fraktals with python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages