mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 04:37:46 +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(
|
def add_background_rectangle(
|
||||||
self,
|
self,
|
||||||
color: ManimColor | None = None,
|
color: ManimColor | None = None,
|
||||||
opacity: float = 0.75,
|
opacity: float = 1.0,
|
||||||
**kwargs
|
**kwargs
|
||||||
) -> Self:
|
) -> 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
|
from manimlib.mobject.shape_matchers import BackgroundRectangle
|
||||||
self.background_rectangle = BackgroundRectangle(
|
self.background_rectangle = BackgroundRectangle(
|
||||||
self, color=color,
|
self, color=color,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue