mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Small fix to TexMobject.add_background_rectangle
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user