A community-maintained Python framework for creating mathematical animations.
Small fix to TexMobject.add_background_rectangle
Grant Sanderson197287411509
diff --git a/mobject/tex_mobject.py b/mobject/tex_mobject.pyindex 1a6b47106..5fc1b14e5 100644--- a/mobject/tex_mobject.py+++ b/mobject/tex_mobject.py@@ -210,10 +210,11 @@ class TexMobject(SVGMobject):self.submobjects.sort(alphabetical_cmp)return self- def add_background_rectangle(self, color = BLACK, opacity = 0.75):+ def add_background_rectangle(self, color = BLACK, opacity = 0.75, **kwargs):self.background_rectangle = BackgroundRectangle(self, color = color,- fill_opacity = opacity+ fill_opacity = opacity,+ **kwargs)letters = VMobject(*self.submobjects)self.submobjects = [self.background_rectangle, letters]