Greyplot Improvement

Author(s): Fred Nachbaur
Publication: SyncWare News
Pub Details: SyncWare News v1 n2 (Volume 1, Issue 2)
Date: July/August 1983
Pages: 30

(With a Note on Improvements)

Tom Bent suggests the following improvement to the GREYPLOT routine in 1:1 & 1:1a. It results in things being speeded up considerably. Add the following lines:

215 LET Z=VAL A$

Change lines 220 & 240 to read:

220 LET Y=22+INT (20*Z+.5)
240 LET Y=22+INT (20*Z*Z+.5)

Since VAL (a notorious slow-poke) is only used once, the plot gets done in about half the time it takes otherwise.

In general we won’t devote much space to program improvements. Reason – many “improvements” are a matter of taste or aesthetics and don’t improve basic program operation. The exception is improvements which significantly decrease running time, or otherwise upgrade overall performance. It is expected, of course, that you will customize programs in SWN to your tastes and requirements; so any improvements you see fit are up to you. Should you find a way to improve running time, memory economy, or other vital features, let us know about it. We welcome other comments and suggestions for improvement, of course, but are not likely to print it unless the improvement is of major import.

“Improvements” that actually correct some program error or improper operation are of course bugs, and will be reported as such in “Bug Alert.”

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.