mirror of
https://github.com/3b1b/manim.git
synced 2025-11-13 18:57:49 +00:00
Default to fully opaque background rectangle
This commit is contained in:
parent
0c9afb65d9
commit
04733ac32e
1 changed files with 1 additions and 3 deletions
|
|
@ -1436,11 +1436,9 @@ class Mobject(object):
|
|||
def add_background_rectangle(
|
||||
self,
|
||||
color: ManimColor | None = None,
|
||||
opacity: float = 0.75,
|
||||
opacity: float = 1.0,
|
||||
**kwargs
|
||||
) -> Self:
|
||||
# TODO, this does not behave well when the mobject has points,
|
||||
# since it gets displayed on top
|
||||
from manimlib.mobject.shape_matchers import BackgroundRectangle
|
||||
self.background_rectangle = BackgroundRectangle(
|
||||
self, color=color,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue