The following code
\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\[
\begin{tikzpicture}[
every circle/.style={radius=2pt}
]
\filldraw[draw=black] (0,0)
\foreach \i in {3,0,1,0,2,2,1,4}
{
\ifnum \i > 0
\foreach \j in { 1, ..., \i }
{ ++(0.5,0) circle[fill=black] }
\fi
++(0.5,0) circle[fill=red]
}
\foreach \j in { 1, ..., 3 }
{ ++(0.5,0) circle[fill=black] }
;
\end{tikzpicture}
\]
\end{document}
produces the following:
Why is the red color specification for the fill of soem of the circles being ignored?



\documentclass{minimal}. – Roland Oct 27 '21 at 00:04minimal classissue in detail. – Roland Oct 27 '21 at 01:43