[pstricks] English Rule

David Arnold dwarnold45 at suddenlink.net
Mon Jun 1 16:53:07 CEST 2009


All,

Here's some Metapost code that draws an "English Rule".

	
\startuniqueMPgraphic{EnglishRule}{height,width,color}
	numeric height; height=\MPvar{height};
	x1=0; x3=\MPvar{width}; x2=x4=.5x3;
	y1=y3=0; y2:=-y4=height/2;
	fill z1..z2..z3 & z3..z4..z1 & cycle withcolor \MPvar{color};
\stopuniqueMPgraphic

The result looks something like this (attached):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 11142 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20090601/8ee0a65b/attachment.tiff>
-------------- next part --------------


Can someone show me how to the same thing in PSTricks?

D.


More information about the PSTricks mailing list