2

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?

4

2 回答 2

2

从 GraphScene 尝试过,但没有成功。然而,起作用的是:

def construct(self):
    self.camera.background_color = WHITE
于 2021-01-12T21:23:04.283 回答
0

我不确定我是否应该在这里回答或者是否应该编辑这个问题,无论如何我明白了,这是因为我把这CONFIG行放在了def之后construct(self)

于 2020-07-05T08:21:42.927 回答