A few days ago I was looking over a website and realized I should mess around with some fractals... I dug out a dusty corner of the web, QBasic.com and downloaded a Mandelbrot demo. After much putzing around, adding scroll, zoom and finally file-writing capabilites, I got these:
E-mail me if you would like a full-sized (1024x768 only) image of one of these. They look *very* much better full sized.
The program I used to take these: MBROT.BAS. Requires the QBasic interpreter to run. The output files are 1281x801 in 24-bit (three color) .RAW format. Look over the main program loop for what keys do.
I have an updated version (as of 2007; hmm the rest of this page is already three years old, doesn't feel like it!), modified slightly to compile in FreeBasic using -lang qb. The file is FBMbrot.bas and the compiled executable MBROT.exe. It is set to run in SCREEN 18, which is a 640 x 480, 256 color window with console. It runs quite excellently in Windows 98SE. It probably runs equally well in NT, XP, etc. Since I didn't add a SLEEP statement to the loop, it's probably a CPU hog, but that's easy enough to fix. Keys:
Commented out under the Colr$ function is a multicolor function which extends the number of colors from 256 to 1786. If you really wanted to, you could even format it as 24 bit color, though I suspect the contrast wouldn't be as great.