home *** CD-ROM | disk | FTP | other *** search
- % @(#) $Header: rekall.card,v 1.1 90/06/11 02:56:10 jef Exp $
- %
- % rekall.card - Rekall ID (from "Totall Recall")
- %
- % Copyright (C) 1990 by Jef Poskanzer. All rights reserved.
-
- /rekall-boxheight cardheight cardmargin 2 mul sub photoheight sub 2 div def
- /rekall-jobwidth 1.1 in def
- /rekall-namewidth cardwidth cardmargin 2 mul sub rekall-jobwidth sub def
-
- /rekall-mottoheight 0.15 in def
- /rekall-logowidth cardwidth cardmargin 2.5 mul sub photowidth sub def
- /rekall-logoheight photoheight cardmargin 1.5 mul sub rekall-mottoheight sub 2 div def
- /rekall-pixelshigh 9 def
- /rekall-pixelheight rekall-logoheight rekall-pixelshigh div def
- /rekall-pixelswide rekall-logowidth rekall-pixelheight div cvi def
- /rekall-pixelwidth rekall-logowidth rekall-pixelswide div def
- /rekall-pixelfrac 0.8 def
- /rekall-rekallwidth rekall-logowidth def
- /rekall-rekallheight rekall-logoheight def
- /rekall-mottowidth rekall-logowidth def
-
- /rekall-logo {
- gsave
- cardmargin 1.5 mul photowidth add
- cardheight cardmargin sub rekall-logoheight sub
- translate
- 0.05 setlinewidth
- 0 0 moveto rekall-logowidth rekall-logoheight square
- 0 1 rekall-pixelshigh 1 sub {
- 0 1 rekall-pixelswide 1 sub {
- 2 copy rekall-pixelswide 2 div sub exch rekall-pixelshigh 2 div sub
- dup mul exch dup mul add sqrt rekall-pixelshigh 2 div le
- {
- 0.15
- } {
- 0.7
- } ifelse
- randuni gt {
- 2 copy rekall-pixelwidth mul exch rekall-pixelheight mul moveto
- 1 rekall-pixelfrac sub rekall-pixelwidth mul 2 div
- 1 rekall-pixelfrac sub rekall-pixelheight mul 2 div
- rmoveto
- rekall-pixelfrac rekall-pixelwidth mul
- rekall-pixelfrac rekall-pixelheight mul
- filledsquare
- } if
- pop
- } for
- pop
- } for
- grestore
- } def
-
- /rekall-rekall {
- gsave
- cardmargin 1.5 mul photowidth add
- cardheight cardmargin sub photoheight sub rekall-mottoheight add cardmargin add
- translate
- 0 0 moveto
- /Helvetica-Bold findfont 0.50 in scalefont setfont
- rekall-rekallwidth rekall-rekallheight (REKALL) showboxed
- grestore
- } def
-
- /rekall-motto {
- gsave
- cardmargin 1.5 mul photowidth add
- cardheight cardmargin 2 div sub photoheight sub
- translate
- 0 0 moveto
- /Helvetica-Oblique findfont 0.25 in scalefont setfont
- rekall-mottowidth rekall-mottoheight ("For the memory of a lifetime.") showboxed
- grestore
- } def
-
- /rekall-info {
- cardmargin cardmargin rekall-boxheight add moveto
- rekall-namewidth rekall-boxheight (NAME)
- FirstName: ( ) LastName: strcat strcat diagbox
- cardmargin cardmargin moveto
- rekall-namewidth rekall-boxheight (SIGNATURE) () diagbox
- cardwidth cardmargin sub rekall-jobwidth sub
- cardmargin rekall-boxheight add moveto
- rekall-jobwidth rekall-boxheight (JOB CLASS.) (Implant Tech) diagbox
- cardwidth cardmargin sub rekall-jobwidth sub cardmargin moveto
- rekall-jobwidth rekall-boxheight (EMPLOYEE NO.) 4 randdigs diagbox
- } def
-
- /rekall-card {
- cardstart
- black setgray
- 0 setlinewidth
- cardticks
- cardmargin cardheight cardmargin sub photoheight sub moveto
- photowidth photoheight photo
- rekall-logo
- rekall-rekall
- rekall-motto
- rekall-info
- cardend
- } def
-
- rekall-card
-