[pstricks] eofill and hatches

patrick fradin patrick.fradin at gmail.com
Sun Aug 1 12:46:57 CEST 2021


Yes it works when the fillstyle is full, but not with hatches.

Regards

P. Fradin

Le 01/08/2021 à 12:41, Hensh, Richard a écrit :
> The code below behaves as expected. Perhaps there is a bug with
> addfillstyle?
> 
> \begin{pspicture}(-5.5,-5.5)(5.5,5.5)%
> %\psset{fillstyle=hlines,addfillstyle=eofill}%
> \pscustom[fillcolor=blue,fillstyle=eofill]{%
> \psline(-2,-2)(2,-2)(2,2)(-2,2)%
> \closepath%
> \moveto(-1,-1)
> \psline(4,-1)(4,1)(-1,1)%
> \closepath}%
> \end{pspicture}%
> 
> regards
> rick
> 
> ------------------------------------------------------------------------
> *From:* patrick fradin <patrick.fradin at gmail.com>
> *Sent:* Sunday, August 1, 2021 5:52 AM
> *To:* Hensh, Richard <hensh at msu.edu>; pstricks at tug.org <pstricks at tug.org>
> *Subject:* Re: [pstricks] eofill and hatches
>  
> 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.