Produce beautiful fraktals with Python using numba
parallel optimization.
- Python3
- numba
- numpy, matplotlib, argparse
$ 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
$ 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
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