386BSD 0.1 development
[unix-history] / usr / othersrc / public / ghostscript-2.4.1 / colorcir.ps
CommitLineData
b906fd85
WJ
1%!
2
3gsave
4/Times-Roman findfont 24 scalefont setfont
572 72 translate 0 0 moveto 1 0 0 setrgbcolor (Red) show
672 0 translate 0 0 moveto 0 1 0 setrgbcolor (Green) show
772 0 translate 0 0 moveto 0 0 1 setrgbcolor (Blue) show
872 0 translate 0 0 moveto 1 1 0 setrgbcolor (Yellow) show
972 0 translate 0 0 moveto 1 0 1 setrgbcolor (Pink) show
1072 0 translate 0 0 moveto 0 1 1 setrgbcolor (Cyan) show
1172 0 translate 0 0 moveto 0.9 0.9 0.9 setrgbcolor ('White') show
12grestore
13
140.0 setlinewidth
15
16/hsvcircle {
17gsave
18 /h 0.0 def
19 0 4 360 {
20 pop
21 gsave
22 0.5 0.0 translate
23
24 newpath
25 0.0 0.0 moveto
26 0.1 0.0 lineto
27 0.1 0.02 lineto
28 0.0 0.02 lineto
29 closepath
30 h 1.0 1.0 sethsbcolor
31 fill
32
33 %newpath
34 %0.0 0.0 moveto
35 %0.1 0.0 lineto
36 %0.1 0.02 lineto
37 %0.0 0.02 lineto
38 %closepath
39 %0.0 setgray
40 %stroke
41
42 grestore
43 /h h 4 360 div add def
44 4 rotate
45 } for
46grestore
47} def
48
49/graycircle {
50gsave
51 /h -1.0 def
52 0 4 360 {
53 pop
54 gsave
55 0.5 0.0 translate
56
57 newpath
58 0.0 0.0 moveto
59 0.1 0.0 lineto
60 0.1 0.02 lineto
61 0.0 0.02 lineto
62 closepath
63
64 h abs setgray
65 fill
66
67 %newpath
68 %0.0 0.0 moveto
69 %0.1 0.0 lineto
70 %0.1 0.02 lineto
71 %0.0 0.02 lineto
72 %closepath
73 %0.0 setgray
74 %stroke
75 grestore
76
77 /h h 8 360 div add def
78 4 rotate
79 } for
80grestore
81} def
82
830.0 setlinewidth
840.0 setgray
85300 400 translate
86500 500 scale
87
8830 rotate
891.0 0.7 scale
90-30 rotate
91
92hsvcircle
930.8 0.8 scale
94graycircle
950.8 0.8 scale
96hsvcircle
970.8 0.8 scale
98graycircle
990.8 0.8 scale
100hsvcircle
1010.8 0.8 scale
102graycircle
1030.8 0.8 scale
104hsvcircle
1050.8 0.8 scale
106graycircle
1070.8 0.8 scale
108hsvcircle
1090.8 0.8 scale
110graycircle
1110.8 0.8 scale
112hsvcircle
1130.8 0.8 scale
114graycircle
1150.8 0.8 scale
116hsvcircle
1170.8 0.8 scale
118graycircle
119
120showpage