home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.update.uu.se
/
ftp.update.uu.se.2014.03.zip
/
ftp.update.uu.se
/
pub
/
rainbow
/
msdos
/
misc
/
hands.lzh
/
HANDS2.DOC
< prev
Wrap
Text File
|
1986-05-14
|
2KB
|
57 lines
HANDS2 - An "ANALOG" Graphics Clock for the DEC Rainbow
By Marc E. Kenig, 1985/86
This package answers, for some of you, the question of what to do with
your Rainbow now that it's on the verge of obsolesence (what with falling
behind by a version of LOTUS and all...). Put it on your mantle and use it as
an attractive analog (the kind with hands and numbers that don't change) clock!
In an attempt to be totally anachronistic, this package contains a
program and Turbo Pascal[1] source for a tic-toc clock (all that's missing is
the tic-toc - I don't know how to program the keyboard to keyclick!). It has
an hour hand, a minute hand and a sweep second hand. It picks up the system
time (have you set it right on bootup?) and displays the clock after an
interminable delay. No your Rainbow's not out to lunch, I have to calculate
lots of sines and cosines!
The clock uses Rainbow's high-res graphics mode, although, not to
reflect badly on a wonderful graphics package (really.) the anti-aliasing in
non-exsistant. Therefore the hands look pretty putrid at 3,6,9 and 12 and
indicating 12 o'clock exactly looks embarassing. You'll see what I mean.
REQUIREMENTS
- 1 DEC Rainbow any flavor, any memory config.
- 1 Color/Graphics board installed in above Rainbow (for maximum
effect)
- 1 copy Nist[2] Color Graphics Package if you want to compile your own
INGREDIENTS
- 1 HANDS.COM executable clock source
- 1 HANDS.PAS source for above
THE PROGRAM TAKES A LONG TIME TO BOOT-UP. BE PATIENT.
PROGRAM OPERATION
At DOS Prompt:
>hands2
...screen blanks...
...wait...
...clockface and hands drawn...
...hands move to indicate time...
Typing a <space> stops the clock.
Typing another space resumes time (the new correct time is displayed)
Typing a <space>Q exits the program and returns to VT100 mode.
Anybody wanting to improve on my long forgotten, rusty trigonometry
is perfectly welcome to do so. Likewise anybody wanting to add color, as I
alas am stuck in the world of black and white.
[1] TURBO Pascal, Borland Int'l, Scots Valley, CA Ver 3 recommended.
[2] Nist, Kenneth "Turbo Pascal Color/Graphics" package, Harvard, MA