home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula
/
nebula.bin
/
SourceCode
/
MiniExamples
/
AskMe
/
Clock.psw
< prev
next >
Wrap
Text File
|
1991-05-10
|
528b
|
23 lines
/*
* Clock.psw, Postscript code for drawing the digital clock.
* You may freely copy, distribute and reuse the code in this example.
* NeXT disclaims any warranty of any kind, expressed or implied, as to its
* fitness for any particular use.
*/
/* centerShow centers the width of a string at the specific x y location
* using specified gray
*/
defineps PSWcenterShow (float x; float y; char *str; float gray)
gray setgray
x (str) stringwidth pop 2 div sub y moveto
(str) show
stroke
endps