I'm trying to create a picture like this:
where I have a grid and I depict the boxes shifting by colors changing. I was hoping I could achieve this effect easily in Tikz with a foreach (I am very inexperienced with Tikz). It doesn't seem to like me putting the variable \j or \i into the color section – in particular, when I try and multiply it by something (for example, and as in the presented code, 10).
\begin{tikzpicture}[scale=.5]
\foreach \i in {1,2,3,4,5,6,7,8}
{
\foreach \j in {1,2,3,4,5,6,7,8}
{
\definecolor{myblue}{cmyk}{10*j,0,0,0}
\draw[fill= myblue] (\i-1,\j-1)--(\i,\j-1)--(\i,\j)--(\i-1,\j)--(\i-1,\j-1);
}
}
\end{tikzpicture}
Before attempting this solution I was using \draw[fill=blue!10*\j!white] (\i-1,\j-1)--(\i,\j-1)--(\i,\j)--(\i-1,\j)--(\i-1,\j-1);
Any help would be much appreciated.



blue!\i!whiteor something like that. – Sean Allred Jun 20 '15 at 21:34