I want to add a pattern to a node in TikZ; how can I, for example, fill in the number 5 with the numbers 5 (ie a picture in a picture ...)?
Here is my MWE:
\documentclass[border=5pt,tikz]{standalone}
\usepackage[outline]{contour}
\begin{document}
\begin{tikzpicture}
\foreach \x in {1,1.2,...,3}
\foreach \y in {1,1.3,...,4.2}
{
\node[xshift=-2cm,yshift=-2.5cm] at (\x,\y) {5};
}
\node[white] {\resizebox{3cm}{3cm}{\contour{blue}{5}}};
\node[red] at (0,1.2) {5}; % <--| where it should be; kind of „invert the pattern onto the node“
\end{tikzpicture}
\end{document}
P.S. excuses the messy source code, this is just a "shell". Of course I will clean it up myself.

