Default to fully opaque background rectangle

This commit is contained in:
Grant Sanderson
2023-02-01 11:20:09 -08:00
parent 0c9afb65d9
commit 04733ac32e

View File

@ -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,