Home > PostScript, Technical > Draw a filled rectangle in postscript

Draw a filled rectangle in postscript

April 12, 2010

gsave
180 rotate -1 1 scale
0 -3300 translate
100 3190 moveto
2000 3190 lineto
2000 3140 lineto
100 3140 lineto
100 3190 lineto % draw the rectangle
0.42 0.42 0.42 setrgbcolor fill  % gray color
stroke
grestore

Advertisements
Categories: PostScript, Technical
%d bloggers like this: