Skip to content

Commit 65a0fec

Browse files
authored
(re)set background color when initializing scene (ManimCommunity#2668)
1 parent 94a984e commit 65a0fec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manim/renderer/opengl_renderer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def __init__(self, file_writer_class=SceneFileWriter, skip_animations=False):
246246
# Initialize texture map.
247247
self.path_to_texture_id = {}
248248

249-
self._background_color = color_to_rgba(config["background_color"], 1.0)
249+
self.background_color = config["background_color"]
250250

251251
def init_scene(self, scene):
252252
self.partial_movie_files = []
@@ -255,6 +255,7 @@ def init_scene(self, scene):
255255
scene.__class__.__name__,
256256
)
257257
self.scene = scene
258+
self.background_color = config["background_color"]
258259
if not hasattr(self, "window"):
259260
if self.should_create_window():
260261
from .opengl_renderer_window import Window

0 commit comments

Comments
 (0)