Simple program to explore the Mandelbrot set

Download, build and run on UNIX-like systems* with X11 installed as follows:

curl -O https://clearskyinstitute.com/xMandelbrot/xMandelbrot.tgz
tar xfz xMandelbrot.tgz
cd xMandelbrot
make
./xMandelbrot

Keyboard shortcuts:

ESC:          zoom all the way out at this location
Enter:        zoom in 2x, same center
button1:      zoom in 2x, new center
+control      zoom out
+shift        zoom 5x
cC            decrease/Increase contrasts
rRgGbB        cycle given color peak to lower or Higher iteration count
i             save image and info to successive mandelbrotNNN.png and .txt
q             quit
hjkl          move half screen in given vi direction (arrows ok too)

The i command will save the current display to the next available mandelbrotNNN.png and store in mandelbrotNNN.txt the location and contrast settings used. The values are x y radius red-quartile green-quartile blue-quartile contrast excution_time. These settings in turn can be given as a new starting case using the -c command line option. For example (do not include the last token which was the execution time):

./xMandelbrot -c  0.083783295977513 -0.624692461764514  0.000000005960464  8:416-1347    8:416-1347    2:329-378     2 

Color is assigned by counting all non-zero escape values into a histogram with 10 quartiles. Full red, green and blue brightness may be assigned separately to any of these using the rgb and RGB keys. The brightness tapers down linearly to black at ± quartiles set by c or C.

Across the top is the Mandelbrot coordinates at the cursor followed by the magnification expressed as the diamter of the entire Mandelbrot cardioid if the screen size is one foot in diameter.

* This program is very compute intensive. Use the fastest computer you have with the most cores.