home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
GRAPHICS
/
RADII.ZIP
/
RADII.DOC
next >
Wrap
Text File
|
1993-12-31
|
3KB
|
75 lines
Radii takes the simple formula for a circle: Z^2 = X^2 + Y^2, using Z to
make concentric circles of different colors.
Here is a quick walk through: (print this document and follow along)
Start the program RADII.EXE
Note the ZOOM=4. Zoom determines how many circles are shown in the
window. The number of circes plotted increases with the SQUARE of ZOOM.
The program starts in MCGA mode.
Press "s" until the step size is 50%. This determines how much the ZOOM factor
increases with each step when you...
Go into the AUTO mode by pressing "a". The screen redraws and the ZOOM
factor increases with each step. Notice how the circles are closer at
the edges of the window. This is because the color is determined by Z^2
(Z squared). Press a again and ZOOM steps up.
Press the SPACE BAR to exit AUTO mode.
Press the UP or DOWN arrow keys to single step ZOOM.
As the ZOOM goes up the circles get smaller than the pixel resolution
(200 X 200 in MCGA) and interference patterns develop and eventually
dominate the window. If the screen had infinite resolution these
interference patterns wouldn't appear. There would be just smaller and
smaller concentric circles.
Press <ENTER> to enter a ZOOM number. Enter a small number, such as 10.
Press "-" to see what the formula Z^2 = X^2 - Y^2 looks like. Neat, huh?
"+" or "=" and "-" can switch between these two formulas anytime.
Press "s" to set the step size to 1. Press "e" and enter a large number
for ZOOM, such as 9500. Press "a" for AUTO. Note that when ZOOM is large
a change of only one can make a big difference.
Press "h" for Z^3 = X^3 (+/-) y^3 {high order} these work with a smaller
range of ZOOM. Press "l" to return to the square formulas.
Unless you are one of those unfortunate souls with a PS/2 model 25 you
can press "v" for VGA mode. High resolution and 16 colors.
Press "p" to select a new set of random colors.
Press "P" to return to the default palette.
When ZOOM is larger than about 65000 with the sum formula and 92000 with
the difference formula the entire window cannot be drawn. This can get
confusing. Press "r" to clear the screen of "dead" patterns.
There are special numbers that give simple, compelling patterns. I call
these "resonances". In both VGA and MCGA modes the even thousands: 6000,
8000, 10000 etc. are special. Some other numbers unique to each mode are
also special. Happy hunting. "q" quits the program.
RADSAV is suitable as a screen saver. It draws the whole screen and is
always in AUTO mode. The "m", "v", "-", "+", "l","h" and "p" commands
are the same. Entering a digit from 0 to 9 jumps to a low to high ZOOM
number. ZOOM numbers are displayed briefly on the laft side of the
screen. "q" or <ESC> quits the program.
This program was written with Quick Basic. I would appreciate any
feedback.
This is free to the public.
Tim Brown
TBROWN14 on Genie
12-31-93