Create a cool wallpaper of a mandelbrot set !
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.4 KiB

mandelplot

Generate mandelbrot set with specified dimensions, a couple of palettes included !

Usage

mandelplot [OPTIONS]

OPTIONS:

  • -d, --image_dimensions <image_dimensions> => Set image dimensions (WIDTHxHEIGHT) [default: 7680x4320]

  • -h, --help => Print help information

  • -i, --max_iter <max_iter> => Specify maximum amount of iterations to decide whether the point escapes to infinity or not [default: 1000]

  • -n, --image_name <image_name> => Set output image filename [default: mandelbrot]

  • -p, --palette <palette> => Specify bulb color (light, dark) [default: light]

  • -V, --version => Print version information

  • -z --m_set_dimensions <m_set_dimensions> => Set real and imaginary constraints (real_start,imaginary_startxreal_end,imaginary_end) [default: -2.5,-2.0x1.5,2.0]

Naive benchmarks

Singe-threaded (19200x10800) (pre v0.2.0)

./mandelplot -d 19200x10800 -p dark 70.06s user 0.14s system 99% cpu 1:10.24 total

Multi-threaded (19200x10800) (v0.2.0)

./target/release/mandelplot -d 19200x10800 -p dark 85.28s user 8.06s system 258% cpu 36.079 total

1:10 - 0:36 == 0:34 saved

Multi-threaded (19200x10800) (v0.3.0)

./mandelplot -d 19200x10800 87.43s user 10.93s system 349% cpu 28.134 total

1:10 - 0:28 == 0:42 saved

Interesting "places"

  • ./mandelplot -z='-0.55,-0.55x-0.5,-0.48' -i 5000
  • ./mandelplot -z='-0.565,-0.565x-0.550,-0.550' -i 10000

TODO:

  • generate image in parallel
  • zooming in