Hello there, I am reading Modeling Nature Cellular Automata by Richard J Gaylord book and I tried 'flip-card' animation codes (p.12 inserted below) on Wolfram Mathematica (bc I interest to see how it works) and seems to be not working. How can I fix it? Please help and thank you.
ShowCA[list_, opts__] :=
Map[show[
Graphics[
RasterArray[
list[[#]] {val1 -> RGBColor[x1, y1, z1],
val2 -> RGBColor[x2, y2, z2], ...}]], opts] &,
Range[Length[list]]]
Syntax::sntxf: "list[[#]]" cannot be followed by "{val1->RGBColor[x1,y1,z1],val2->RGBColor[x2,y2,z2],...}".