| Wolfram Technology Guide: Dynamic Interactivity | ◄ previous | next ► |
In[1]:= | Manipulate[
With[{w =
CellularAutomaton[{n, {2, 1}, {1, 1}}, {{{1}}, 0}, {{{t}}}]},
ArrayPlot[ArrayFlatten[Table[w, {nt}, {nt}]],
ColorRules -> {0 -> Purple, 1 -> Red}, Frame -> False]], {{n, 2,
"rule number"}, 2, 200, 4}, {{t, 20, "number of steps"}, 1, 90,
1}, {{nt, 4, "number of tiles"}, 1, 5, 1},
ControllerLinking -> True] |
Out[1]= ![]() |