[texhax] tikz and making a hole
Victor Ivrii
vivrii at gmail.com
Wed Jun 23 00:49:45 CEST 2010
On Tue, Jun 22, 2010 at 5:36 PM, Martin Heller <mr_heller at yahoo.dk> wrote:
> \begin{tikzpicture}
> \fill[red] (1.9,1.9) circle (.5);
> \fill[blue,even odd rule] (2,2) circle (0.5) circle (1);
> \end{tikzpicture}
>
Thanks! I missed [even odd rule] switch.
I make even more holes
\fill[blue,even odd rule] (1,1) circle (0.5)
(3,1)--(3,2)--(2,2)--(3,1) (2,0)rectangle (2.5,.5) (2,1) circle (2)
;
But returns "symmetric difference"
\fill[blue,even odd rule] (0,1) circle (0.5) (2,1) circle (2) ;
filling "uncommon" points.
However if I want only large disc without points of the small one I try
\clip (2,1) circle (2) ;
\filldraw[ even odd rule] (0,1) circle (0.5) (2,1) circle (2) ;
which is "almost" perfect but returns a "ghost" line.
Funny, but making ***larger*** domain to clip solves the problem.
\clip (2.1,1) circle (2) ;
\filldraw[ even odd rule] (0,1) circle (0.5) (2,1) circle (2) ;
Does it mean that even-odd rule affects even clip before?
Victor
--
========================
Victor Ivrii, Professor, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii
More information about the texhax
mailing list