This is my code:
\documentclass[tikz,12pt]{standalone}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}[line width=1.5pt]
\coordinate (A) at (2,2);
\coordinate (B) at (2,1.2);
\coordinate (C) at (3,2);
\coordinate (D) at (3,1.2);
\draw[fill=white] (A) circle (0.5);
\draw[fill=white,pattern=north east lines, pattern color=black] (B) circle (0.5);
\draw[fill=white] (C) circle (0.5);
\draw[fill=white] (D) circle (0.5);
\end{tikzpicture}
\end{document}
When I use pattern=north east lines
I can see first circle through second with pattern.
If I do not use pattern=north east lines
I get what I want to see: second circle overlay first one.
But I need Second circle to be with pattern.
How this problem could be solved without using \pgfdeclarelayer{background}
\pgfsetlayers{background,main}
?