diff options
Diffstat (limited to 'src/graph/PS/drawrect.ps')
-rw-r--r-- | src/graph/PS/drawrect.ps | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/graph/PS/drawrect.ps b/src/graph/PS/drawrect.ps new file mode 100644 index 00000000..ed955acb --- /dev/null +++ b/src/graph/PS/drawrect.ps @@ -0,0 +1,18 @@ +% operand stack configuration in order to use psDrawRect: +% psDrawRect +% y +% x +% height +% width +% graphics-context dictionary +% this draws an outline of a rectangle whose origin is at (x,y) and is width +% + 1 wide and height + 1 tall. + +/psDrawRect + { gsave + newpath + rectangle + begin installGC stroke end + grestore } + def + |