CHAOS by Blob of Gate --------------------- DOCS ---- Welcome to the world of chaos. This program calculates Mandelbrot and Julia groups, geometrical fractales of the nature. The Mandelbrot and Julia groups are chaotical; you newer cannot tell the exact color of the pixel in the group. When you add the calculating accuracy and iteration, the color of the pixel will come nearer to the right color, but the exact color never can be calculated. When you zoom the fractal, it will reveal more and more new features. Only the accuracy of the program will limit the zooming. Most natural landscapes are also fractals: When you look closer and closer to the landscape it has also unlimited number of new features. Tree will first reveal brances, then little brances, tree cells, molecules and even atoms. In the program the black pixels are the part the group. Other pixels are in the borders of the group. Algorithms The coordinates of the Mandelbrot (and nearly always also of the Julia) group are x (-2.0 to 0.5) and y (-1.2 to 1.2) the program supports decimal numbers from -3.99999999 to 3.99999999 which is more than enough. The center of the Mandelbrot group is 0 , 0. Program used 16 bit accuracy if possible (faster) and 32 bit accuracy (slower) if area is smaller than 0.09 . 32 bit accuracy allows zooming to 0.0000005 maxium. That is zoom * 1000000 !!! If the width of the group would be 10 cm * 10 cm the maxium zoom would show the area of 50 nm * 50 nm. And one pixel would show area of 150 pm * 150 pm ( Aproximate as wide as the width of an atom!!) The complex number C ( (= x+y*i) where x is x-coordinate, y is y-coordinate and i is squarefoot -1 (confusing??) .) is a part of the Mandelbrot group, if Z = 0 repeat n times (n = iteration) Z = Zē+C doesn't overflow and grow towards infinity. In the program, the limit is 4. Result of 4 overflows. Algorithm of the Julia is similar, but C is static and can be given in the beginning. Z = (x+y*i) repeat n times (n = iteration) Z = Zē+C The program When you run the program it will first ask some basic values. Return indicates previous value to be used. Error correct - Means how exact the color of the pixel is. 0 means only 1 calculation per pixel 1 means 2 calculations per pixel 2 means 3 calculations per pixel. The most accuratic. Using more accuracy consumes speed ! Number of bpls- Number of colors in the picture 2,4,8,16 or 32 bpls up to 4 doesn't consume speed. Cr - Is the real (x) part of the complex number C To use Mandelbrot type x here. To use Julia type any decimal number from -3.999 to 3.999 for example: 0.3283691, 0.29296875, 0.277099609 -0.915527343 and 0 Ci - Is the image (y*i) part of the complex number C Type 0 here for the Mandelbrot group. Examples: 0.01831054, 0.830078125, 0.6420898 and 0 Realfrom and - x coordinates of the left and right edges of the screen. Realto exaple: (mandelbrot) from 1.2 to 1.29 Image to - y coordinate of the upper edge of the screen. exaple: (mandelbrot) from 0.147 Iterations - How many times each pixel is calculated. Should be set to 32 at least. Maxium 1023. Great iterations consumes much speed. Controller keys For zooming more in the picture use mouse when the picture is made. Box shows the area to be shown. keys: ESC - Exit picture mode F1 - Minimum zoom F2 - zoom backwards F3 - Iteration 32 F4 - Iteration 64 F5 - Iteration 128 F6 - Color palette1 F7 - Color palette2 F8 - Color palette3 F9 - Cycle on/off F10 - Save picture in IFF mode (only when calc finished) 1 to 9 - Cyclespeed 0 - Cycledirect - When the exit is made decimal numbers indicating x-start, x-stop and y-start of the previous picture will be typed down to the screen. Contact Me This program is SHAREWARE. It means if you like it and use it, please send reasonable amount of money to: (Blob of Gate) Henri Saarikoski Kutunpolku 3 38200 Vammala Finland TEL. 358-32-43678 after 5 o'clock eurotime! In return you get the documented source of the program if you like and routines such as keyboard driver, blitter linedraw, hardware screen make, iff-save routine and of course mandelbrot and julia calculation routines. Contact me also for suggestions and intstructions and feel free to put this program to your collections. And if you are intrested in role-game graphics making contact me for co-operation?