[Tex/LaTex] Filling the area between two circles

tikz-pgf

How can I fill the area between two concentric circles (or even slightly eccentric) using only tikz (preferably without pgfplots)? I have found many sort-of similar questions, but nothing that quite addresses this.

\documentclass[tikz,border=1pt]{standalone}

\begin{document}
\begin{tikzpicture}
    \draw (0, 0) circle (1);
    \draw (0, 0) circle (1.2);
\end{tikzpicture}
\end{document}

I want to fill the area between these two with the color gray. I would prefer not to fill the inner circle with white color, but leave that transparent, or unfilled.

Best Answer

You can use the even odd rule for filling. The red line is just to show the inner circle is transparent.

\documentclass[tikz,border=1pt]{standalone}
\begin{document}
\begin{tikzpicture}
  \draw[red,thick] (-1.2,-1.2) -- (1.2,1.2);
  \fill[gray!40,even odd rule] (0,0) circle (1.2) (0,0) circle (1);
  \draw (0, 0) circle (1);
  \draw (0, 0) circle (1.2);
\end{tikzpicture}
\end{document}

enter image description here