TransWikia.com

Changing the color of the animate box

Mathematica Asked on October 22, 2021

Is there a way to change the coloring of the boxes that are generated by Animate or Manipulate? The color of what is gray by default.

Animate[ArrayPlot[CellularAutomaton[n, {{1}, 0}, {40, All}]], {n, 0, 
  255, 1}, AnimationRunning -> False]

enter image description here

One Answer

You can wrap Animate and Manipulate with Style and set the DefaultOptions for Panel:

 Style[#, DefaultOptions -> {Panel -> {Background -> LightBlue}}] & @
   Animate[ArrayPlot[CellularAutomaton[n, {{1}, 0}, {40, All}]], {n, 0, 255, 1}, 
      AnimationRunning -> False]

enter image description here

 Style[#, DefaultOptions -> {Panel -> {Background -> LightBlue}}] & @
   Manipulate[ArrayPlot[CellularAutomaton[n, {{1}, 0}, {40, All}]], {n, 0, 255, 1}]

enter image description here

Answered by kglr on October 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP