msollami

Untitled

Jan 30th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Manipulate[
  2. init = RandomInteger[colors - 1, {100, 100}];
  3. ArrayPlot[
  4. CellularAutomaton[{rulenumber, {colors, 1}, {1, 1}},(*{{{1}},0}*)
  5. init, {{{steps}}, All, All}], ImageSize -> {490, 490},
  6. ColorFunctionScaling -> True,
  7. ColorRules -> {0 -> White, 1 -> Black, 2 -> Blue, 3 -> Green}],
  8. {{colors, 4}, 3, 5, 1, ControlType -> SetterBar},
  9. {{rulenumber, 1412490}, 0, 1452490, 1, Appearance -> "Labeled"},
  10. {{steps, 800}, 2, 10000, 2, Appearance -> "Labeled"},
  11. SynchronousUpdating -> False]
Advertisement
Add Comment
Please, Sign In to add comment