Contents of the FRACTALS.DOC file
These programs were written to ilustrate the use of Monte Carlo
techniques for simulating natural phenomena. They generate a fractal
pattern by moving particles toward a "crystal" by a "random walk". If
a particle touches the crystal, it sticks, and adds to the crystal;
if it gets too far away, it is discarded. To help illustrate the
process, the particle is visible.
There are three programs included:
fractcga.exe runs on a CGA or EGA system
fracthrc.exe runs on a Hercules monochrome graphics card.
fractega.exe runs on an EGA system, in color
The fractcga program is somewhat slower than the Hercules or EGA
versions, since it uses BIOS interrupts to do the graphics, while the
Hercules program writes directly to screen memory. The source code to
fractcga is also included. It was compiled using Turbo C v1.0, but
it ought to work with any standard C with minor modifications.
For best results, the program must be allowed to run for a fairly
long time. That allows enough particles to be traced to generate a
fairly large crystal. Count on a run of an hour for a XT with a CGA,
less for other configurations.
To terminate the program, hit any key. After the current particle
is finished, the program will stop.