5

I can't seem to change the camera config in a scene in manim; i put the following code at the top of a scene:

CONFIG = {
    "camera_config":{"background_color": "#003399"}
} 

but the background doesn't change; is there something else needed to change the background?

Martino Wong
  • 59
  • 1
  • 3

2 Answers2

8

Tried this from a GraphScene and it didn't work. What did work however was:

def construct(self):
    self.camera.background_color = WHITE
0

I'm not sure if I am supposed to answer here or if I should edit the question, anyway I got it, it was because I put the CONFIG line after def construct(self)

Martino Wong
  • 59
  • 1
  • 3