Debian Codegraph @

texmf-dist/dvips/pspicture/pspicture.ps

raw
1 %!
2 %%
3 %% Source File `pspicture.dtx'.
4 %% Copyright (C) 1992 1999 David Carlisle
5 %% This file may be distributed under the terms of the LPPL.
6 %% See 00readme.txt for details.
7 %%
8
9
10
11
12 /!BP{
13 72 72.27 div dup scale
14 }def
15 /!A{
16 newpath
17 0 0 moveto
18 dup neg dup .4 mul rlineto
19 .8 mul 0 exch rlineto
20 closepath
21 fill
22 } def
23 /!V{
24 !BP
25 /!X exch def
26 /!y exch def
27 /!x exch def
28 newpath
29 0 0 moveto
30 !x 0 eq {0 !y 0 lt {!X neg}{!X} ifelse}
31 {!x 0 lt {!X neg}{!X}ifelse !X !y mul !x abs div} ifelse
32 lineto
33 setlinewidth % @wholewidth
34 currentpoint
35 stroke
36 translate
37 !y !x atan
38 rotate
39 !A % @arrowlength
40 }def
41 /!L{
42 !BP
43 /!X exch def
44 /!y exch def
45 /!x exch def
46 newpath
47 0 0 moveto
48 !x 0 eq {0 !y 0 lt {!X neg}{!X} ifelse}
49 {!x 0 lt {!X neg}{!X}ifelse !X !y mul !x abs div} ifelse
50 lineto
51 setlinewidth % @wholewidth
52 stroke
53 }def
54 /!C{
55 !BP
56 0 0 3 2 roll
57 2 div 0 360 arc
58 setlinewidth % @wholewidth
59 stroke
60 }def
61 /!D{
62 !BP
63 0 0 3 2 roll
64 2 div 0 360 arc fill
65 }def
66 /!O{
67 !BP
68 /!y exch 2 div def
69 /!x exch 2 div def
70 /!r exch !x !y
71 2 copy gt {exch} if pop
72 2 copy gt {exch} if pop
73 def
74 setlinewidth % @wholewidth
75 1 eq
76 {newpath
77 !x neg 0 moveto
78 !x neg !y 0 !y !r arcto 4 {pop} repeat
79 0 !y lineto
80 stroke}if
81 1 eq
82 {newpath
83 !x 0 moveto
84 !x !y 0 !y !r arcto 4 {pop} repeat
85 0 !y lineto
86 stroke}if
87 1 eq
88 {newpath
89 !x neg 0 moveto
90 !x neg !y neg 0 !y neg !r arcto 4 {pop} repeat
91 0 !y neg lineto
92 stroke}if
93 1 eq
94 {newpath
95 !x 0 moveto
96 !x !y neg 0 !y neg !r arcto 4 {pop} repeat
97 0 !y neg lineto
98 stroke}if
99 }def
100 /!V2{
101 !BP
102 2 copy exch
103 atan
104 /a exch def
105 2 copy
106 newpath
107 0 0 moveto
108 lineto % <x*unitlength> <y*unitlength>
109 3 2 roll
110 setlinewidth % @wholewidth
111 stroke
112 translate % <x*unitlength> <y*unitlength>
113 a rotate
114 !A % @arrowlength
115 }def
116 /!L2{
117 !BP
118 newpath
119 0 0 moveto
120 lineto % <x*unitlength> <y*unitlength>
121 setlinewidth % @wholewidth
122 stroke
123 }def
124 /!C2{
125 !BP
126 /!s exch def
127 /!y exch def
128 /!x exch def
129 newpath
130 0 0 moveto
131 0 0
132 !x 2 div !y 10 div !s mul add
133 !y 2 div !x 10 div !s mul sub
134 !x !y
135 curveto
136 setlinewidth % @wholewidth
137 stroke
138 }def