/*
Fractal Generator (c) L29Ah AKA Sergey Alirzaev
(zl29ah@gmail.com, 2:5030/1518.3)
Fractal Generator is a program that can generate Julia & Mandelbrot's fractals,
writing it onto BMP files... Please, send info about bugs!
Short history:
Fractal Generator was born in 07.2006, firstly in Basic (output to the
screen, annoyingly slow...). Then it was rewritten in PHP (well, it haven't
worked ;)), and when I, finally, learned C, it was rewritten nearly to
condition you can see now... ;)
Command-line arguments:
-h:
Help(under construction)
-a :
Default: 640
Sets X for resulting file (max X * Y = 0xFFFFFFFF)
-b :
Default: 480
Sets Y for resulting file (max X * Y = 0xFFFFFFFF)
-i :
Default: 256
Sets the maximum number of iterations to be done for one pixel
(max 0xFFFFFFFF ;))
-x :
Default: -1.5
Sets Xmin for Julia fractal
-X :
Default: 1.5
Sets Xmax for Julia fractal
-y :
Default: -1.5
Sets Ymin for Julia fractal
-Y :
Default: 1.5
Sets Ymax for Julia fractal
-p :
Default: -2.25
Sets P(Re c)min for Mandelbrot fractal
-P :
Default: 0.75/0.32
Sets P(Re c)max for Mandelbrot fractal/P for Julia fractal
-q :
Default: -1.5
Sets Q(Im c)min for Mandelbrot fractal
-Q :
Default: 1.5/0.043
Sets Q(Im c)max for Mandelbrot fractal/Q for Julia fractal
-J:
Forces Julia fractal generation
-M:
Default
Forces Mandelbrot fractal generation
-o :
Default: out.bmp
Sets output filename
-c :
Default: 2
Sets the maximum number of colors for resulting file (max 255)
-B:
Forces 10-second stupid benchmark routine (shows the approximate number of
iterations can be done on your PC per second)
-G:
(Unworkable) Sets gradient drawing mode (else interchange will be used)
-C:
Disables Cool Palette (first appeared in 0.4.0)
-f:
(debug) Manual entering flags
-F:
(debug) Use zero color in fractal generation
Known bugs:
Bug with some resolutions like 101x45
Overflow bug during benchmark
*/