I have made a 5 x 5 square checker pattern using the code below. How can I change it to 4 x 10 rectangular checker pattern?
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\edef\size{4}
\foreach \x in {0,...,\size} \foreach \y in {0,...,\size} {
\pgfmathsetmacro{\colour}{(\x==\y || \x+\y==\size) ? "none" : "none"}
\draw[fill=\colour] (\x,\y) rectangle ++ (1,1);
}
\end{tikzpicture}
\end{document}


