Dec 102017
Generate fractals on CGA, EGA, and Herc. Very Slow! Incl. source for C.
File FRACTALS.ZIP from The Programmer’s Corner in
Category Printer + Display Graphics
Generate fractals on CGA, EGA, and Herc. Very Slow! Incl. source for C.
File Name File Size Zip Size Zip Type
FRACTALS.DOC 1308 662 deflated
FRACTCGA.C 4363 1395 deflated
FRACTCGA.EXE 20938 14091 deflated
FRACTEGA.EXE 26622 16748 deflated
FRACTHRC.EXE 37386 17797 deflated

Download File FRACTALS.ZIP Here

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.

 December 10, 2017  Add comments

Leave a Reply