[pstricks] eofill and hatches

patrick fradin patrick.fradin at gmail.com
Sun Aug 1 11:52:26 CEST 2021


Yes this code works, but it's not a solution, it's just a trick for this
example. I think the original code should work but there is a problem (a
bug?)

Regards,

P. Fradin

Le 01/08/2021 à 11:31, Hensh, Richard a écrit :
> Try this code:
> 
> \begin{pspicture}(-5.5,-5.5)(5.5,5.5)%
> %\psset{fillstyle=hlines,addfillstyle=eofill}%
> \pscustom[fillstyle=hlines]{%
> \psline(-2,-2)(2,-2)(2,2)(-2,2)%
> \closepath%
> \moveto(2,-1)
> \psline(4,-1)(4,1)(2,1)%
> \closepath
> \psline[fillstyle=none](-1,-1)(-1,1)(2,1)
> \closepath
> }%
> \end{pspicture}%
> 
> cheers
> rick
> 
> ------------------------------------------------------------------------
> *From:* PSTricks <pstricks-bounces+hensh=math.msu.edu at tug.org> on behalf
> of patrick fradin <patrick.fradin at gmail.com>
> *Sent:* Saturday, July 31, 2021 1:07 PM
> *To:* pstricks at tug.org <pstricks at tug.org>
> *Subject:* [pstricks] eofill and hatches
>  
> Hi,
> 
> When I try this code :
> 
> \begin{pspicture}(-5.5,-5.5)(5.5,5.5)%
> 
> \psset{fillstyle=hlines,addfillstyle=eofill}%
> 
> \pscustom{%
> 
> \psline(-2,-2)(2,-2)(2,2)(-2,2)%
> 
> \closepath%
> 
> \moveto(-1,-1)
> 
> \psline(4,-1)(4,1)(-1,1)%
> 
> \closepath}%
> 
> \end{pspicture}%
> 
> I've a wrong result (I've joined the expected result  too).
> 
> What should I modify ?
> 
> Thanks
> 
> P. Fradin



More information about the PSTricks mailing list.