Michael SCHINDLER wrote:

> On 18.04.08, Andreas Matthias wrote:
>> cl = path.path(path.moveto(-a,-a),
>>                path.lineto(a,-a),
>>                path.lineto(a,a),
>>                path.lineto(-a,a),
>>                path.closepath())
>> 
>> # protected area
>> cl.append(path.arcn(0,0,2,360,0))
> 
> Try instead
> 
>   c1 += path.circle(0, 0, 2).reversed()
> 
> The offending line was the connection between the endpoint of the
> first part of the path (after closepath) and the beginning of the
> "arcn". Note that arcn is a strange pathelement which adds the
> necessary lineto.
> My replacement implies that a moveto is used instead.

Thanks a lot. I didn't even thought of using moveto within a path.
I was too sure that it was only allowed at the beginning.
Although I always wondered how the path of the annuli in the
filling examples of the PostScript Reference were made. Now I 
know!


Ciao
Andreas


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to