# [texhax] tikz and making a hole

Victor Ivrii vivrii at gmail.com
Wed Jun 16 04:23:02 CEST 2010

If I have a pgf/tikz snippet I can clip a piece of picture with a
command \clip, basically making the selection of the original picture
and throwing out everything else.

Meanwhile  if I want to cut out from the original picture and erase
selection, leaving the rest intact I can use \clip but the following
looks cumbersome:

\begin{tikzpicture}
\fill[red] (1.9,1.9) circle (.5);
\clip  (0,0)--(1.5,0)--(1.5,2) arc
(-180:-540:.5)--(1.5,2)--(1.5,0)--(4,0)--(4,4)--(0,4)--(0,0);
\fill[blue] (2,2) circle (1);
\end{tikzpicture}

Is there a better way? \fill[white] is obvious but it does not work in
many cases as it covers "background canvas" .

Victor