I want to generate a picture that replicates itself and slowy fades out. For that i plan to use a foreach statement and redraw the picture to its rigth.
How can i use the foreach variable to position my replicated pictures.
Here is a minimal example that illustrates what i want. The remaining job in the minimal example is to somehow use \x to create the names for relative adressing the nodes during redraw.
\begin{tikzpicture}[
item/.style={draw=black!#1, thick, text=black!#1, minimum width = 60},
label/.style={text=black!#1, right},
action/.style={black!#1, ->, thick},
downfrom/.style={below = 0.5 of {#1.south}, anchor=north},
rightfrom/.style={right = 0.5 of {#1.north east}, anchor=north west}
]
\foreach \x in {100}
{
\node [item=\x] (first100) {first};
\node [item=\x, downfrom=first100] (second100) {second};
\path[action=\x](first100) edge node [label=\x] {a} (second100.north);
}
\foreach \x in {67}
{
\node [item=\x, rightfrom=first100] (first67) {first};
\node [item=\x, downfrom=first67] (second67) {second};
\path[action=\x](first67) edge node [label=\x] {a} (second67.north);
}
\foreach \x in {34}
{
\node [item=\x, rightfrom=first67] (first34) {first};
\node [item=\x, downfrom=first34] (second34) {second};
\path[action=\x](first34) edge node [label=\x] {a} (second34.north);
}
\end{tikzpicture}
What i want to write but i dont know how would look like this:
\begin{tikzpicture}[
item/.style={draw=black!#1, thick, text=black!#1, minimum width = 60},
label/.style={text=black!#1, right},
action/.style={black!#1, ->, thick},
downfrom/.style={below = 0.5 of {#1.south}, anchor=north},
rightfrom/.style={right = 0.5 of {#1.north east}, anchor=north west}
]
\foreach \x in {100, 67, 34}
{
\node ???
\node ???
\path ???
}
\end{tikzpicture}

