TransWikia.com

Changing pane background color in Animate

Mathematica Asked on May 3, 2021

In the code

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

enter image description here

How to change the color of the inside white box to LightBlue as well?

One Answer

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

enter image description here

Style[#, DefaultOptions -> {Panel -> {Background -> LightBlue}}] &@
  Manipulate[Plot[Sin[n x], {x, 0, 2 Pi}, PlotStyle -> Red, 
   Background -> LightBlue], 
  {{n, 3}, 0, 10, 1}, Method -> {"ContentAreaBackground" -> LightBlue}]

enter image description here

Correct answer by kglr on May 3, 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