home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 1
/
ARM_CLUB_CD.iso
/
contents
/
education
/
n
/
sunclock
/
!Sunclock
/
!Help
next >
Wrap
Text File
|
1992-11-24
|
3KB
|
85 lines
Sunclock - A 'daylight display' program
=======================================
v.1.00
======
© Steve Loft 1992
------------------------------------------------------------------------
This application may be freely distributed providing
(a) All files, including this !help file, are included
(b) No charge is made other than to cover the cost of media
This application may not be distributed by any profit-making
organisation, including public domain software libraries,
without my express permission.
------------------------------------------------------------------------
Sunclock is a desktop application which displays a map of the Earth,
showing the portion which is currently illuminated by the Sun. It
will update the display periodically in real time, or time can be
'speeded up', or run backwards.
Sunclock is based on a program by John Walker, originally written for
(appropriately!) a Sun Workstation. All of the routines to do the
calculation of the Sun's position are John's (hell, I don't even
understand them!), and all of the RISC OS code is mine (actually, it's
based on the supplied examples in Acorn C, but I have to take *some*
of the credit/blame, don't I?).
When run, Sunclock installs on the icon bar. Clicking on the icon opens
the display window. This window has a menu with the following selections:
Forward
-------
Backward
--------
These two selections have effect when in 'animate' mode (see below),
and determine the direction of time travel.
Period
------
This leads to a submenu with selections for 'hour', 'day', 'week',
'month', and 'year', which set the amount by which the time will
be incremented or decremented on each update when in 'animate' mode.
Animate
-------
Real Time
---------
These selections switch between real-time display, and 'animate' mode.
Interval
--------
This selection leads to a writeable icon which allows the time between
each recalculation of the display to be specified.
See the file 'Doc' for John Walker's explanation of how the calculations are
made.
The screen display works by redirecting output to a sprite and then
displaying the sprite using 'sprite_put_scaled'. If anyone can tell me how
to get the redraw done faster than this, please let me know! Also, I use
'win_settitle' to update the clock on the title bar; is there a way to do
this without getting the flicker?
I can be contacted via:
Arcade BBS: user #415, "Steve Loft" (Fido 2:254/27)
E-mail: steve@klaatu.demon.co.uk
Fax: (0302) 371378
Steve Loft
November 1992
-------------------------------