Reverse clipping
Sometimes, we may want the opposite of clipping – instead of cutting away everything that’s not in our clipping area, we would only cut out that part inside a particular area.
First, let’s look at regular clipping again. This time, we will color a different segment of our pair of intersecting rings from Figure 7.11, as shown in the following figure:
Figure 7.16 – Another segment to fill
The code is a straightforward exercise of what we already know. We will choose the smaller circle on the left as a clipping path and draw the right ring. The code is as follows:
\begin{tikzpicture}[even odd rule] \clip (-1,0) circle (1.2); \fill[orange] (1,0) circle (1.2) (1,0) circle (2); \end{tikzpicture}
Now to our challenge, coloring the other part of the right ring, as follows:
Figure 7.17 – Another segment to fill
To also practice limiting the clipping...