[pstricks] \pspolygon and dimen=inner
Adam Fenn
acwfenn at hotmail.com
Mon Feb 6 12:34:40 CET 2006
>Obviously, we can define an inner and an outer for closed path, even for
>crossed path (there is several different definitions in this case) but it's
>not easy to code.
>
>Here is a not so good solution:
>
>% inner
>\begin{pspicture}(0,0)(3,4)
> \def\cliparg{[linewidth=0pt]}
> \def\polygonarg{[linewidth=10pt]}
> \def\polygonpath{(0,0)(2,4)(3,1)(2,0)}
> \begin{psclip}{\expandafter\expandafter\expandafter
> \pspolygon\expandafter\cliparg\polygonpath}
> \expandafter\expandafter\expandafter
> \pspolygon\expandafter\polygonarg\polygonpath
> \end{psclip}
> \pspolygon[linewidth=0.2pt,linecolor=green](0,0)(2,4)(3,1)(2,0)
>\end{pspicture}
Thank you Jean-Côme and Herbert for your help, this is exactly what I
wanted.
Adam Fenn
More information about the PSTricks
mailing list