Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Revert colour of background in docs to BLACK in `Mobject` page. (#2117)

Laith Bahodic55828f0878c
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index f9fac8a11..a914da57e 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -208,10 +208,9 @@ class Mobject:
.. manim:: ChangedDefaultTextcolor
:save_last_frame:
- config.background_color = WHITE
-
class ChangedDefaultTextcolor(Scene):
def construct(self):
+ self.camera.background_color = WHITE
Text.set_default(color=BLACK)
self.add(Text("Changing default values is easy!"))