1 %!PS-Adobe-2.0 EPSF-2.0
3 %%Creator: lua@tecgraf.puc-rio.br
4 %%CreationDate: Wed Nov 29 19:04:04 EDT 2000
5 %%BoundingBox: -45 0 1035 1080
10 %------------------------------------------------------------------------------
12 % Copyright (C) 1998-2000. All rights reserved.
13 % Graphic design by Alexandre Nakonechny (nako@openlink.com.br).
14 % PostScript programming by the Lua team (lua@tecgraf.puc-rio.br).
16 % Permission is hereby granted, without written agreement and without license
17 % or royalty fees, to use, copy, and distribute this logo for any purpose,
18 % including commercial applications, subject to the following conditions:
20 % * The origin of this logo must not be misrepresented; you must not
21 % claim that you drew the original logo. We recommend that you give credit
22 % to the graphics designer in all printed matter that includes the logo.
24 % * The only modification you can make is to adapt the orbiting text to
27 % * The logo can be used in any scale as long as the relative proportions
28 % of its elements are maintained.
30 %------------------------------------------------------------------------------
34 %-- DO NOT CHANGE ANYTHING BELOW THIS LINE ------------------------------------
36 /PLANETCOLOR {0 0 0.5 setrgbcolor} bind def
37 /HOLECOLOR {1.0 setgray} bind def
38 /ORBITCOLOR {0.5 setgray} bind def
39 /LOGOFONT {/Helvetica 0.90} def
40 /LABELFONT {/Helvetica 0.36} def
42 %------------------------------------------------------------------------------
44 /MOONCOLOR {PLANETCOLOR} bind def
45 /LOGOCOLOR {HOLECOLOR} bind def
46 /LABELCOLOR {ORBITCOLOR} bind def
52 /HALFDASHANGLE DASHANGLE 2 div def
54 % moon radius. planet radius is 1.
55 /r 1 2 sqrt 2 div sub def
57 /D {0 360 arc fill} bind def
58 /F {exch findfont exch scalefont setfont} bind def
60 % place it nicely on the paper
62 RESOLUTION 2 div dup translate
63 RESOLUTION 2 div 2 sqrt div dup scale
65 %-------------------------------------------------------------------- planet --
69 %---------------------------------------------------------------------- hole --
73 %---------------------------------------------------------------------- moon --
77 %---------------------------------------------------------------------- logo --
81 LOGO stringwidth pop 2 div neg
85 %------------------------------------------------------------------------------
86 % based on code from Blue Book Program 10, on pages 167--169
87 % available at ftp://ftp.adobe.com/pub/adobe/displaypostscript/bluebook.shar
89 % str ptsize centerangle radius outsidecircletext --
98 str radius ptsize findhalfangle
103 ( ) dup 0 charcode put outsideplacechar
110 % string radius ptsize findhalfangle halfangle
114 stringwidth pop 2 div
116 2 mul 3.1415926535 mul div 360 mul
119 /circtextdict 16 dict def
124 /halfangle char radius ptsize findhalfangle def
129 char stringwidth pop 2 div neg 0 moveto
132 halfangle 2 mul neg rotate
137 %--------------------------------------------------------------------- label --
141 /LABELSIZE LABELFONT exch pop def
142 /LABELRADIUS LABELSIZE 3 div 1 r add sub neg 1.02 mul def
146 LABEL LABELRADIUS LABELSIZE findhalfangle
147 HALFDASHANGLE div ceiling HALFDASHANGLE mul
151 60 LABELANGLE HALFANGLE sub
155 HALFANGLE DASHANGLE div floor DASHANGLE mul
157 {LABELANGLE DASHANGLE div ceiling DASHANGLE mul}
158 {LABELANGLE HALFDASHANGLE sub DASHANGLE div round DASHANGLE mul HALFDASHANGLE add}
172 %--------------------------------------------------------------------- orbit --
175 [1 r add 3.1415926535 180 div HALFDASHANGLE mul mul] 0 setdash
181 LABELANGLE HALFANGLE add
185 LABELANGLE HALFANGLE sub
187 lt {arc stroke} {4 {pop} repeat} ifelse
189 %------------------------------------------------------------------ copyright --
191 (Graphic design by A. Nakonechny. Copyright (c) 1998, All rights reserved.)
206 %---------------------------------------------------------------------- done --