Mandelbrot Pictures

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:

Mandelbrot #1
Mandelbrot #1

Mandelbrot #2
Mandelbrot #2

Mandelbrot #3
Mandelbrot #3

Mandelbrot #4
Mandelbrot #4

Mandelbrot #5
Mandelbrot #5

Mandelbrot #6
Mandelbrot #6

Mandelbrot #7
Mandelbrot #7

Mandelbrot #8
Mandelbrot #8

Mandelbrot #9
Mandelbrot #9

Mandelbrot #10
Mandelbrot #10

Mandelbrot #11
Mandelbrot #11

Mandelbrot #12
Mandelbrot #12

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.



Return to Index


Web page maintained by Tim Williams. All rights reserved.