From 876f2c34196a20ee23076e3049c64d0e9f12a376 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sun, 24 Mar 2019 11:34:07 -0700 Subject: [PATCH] Make BackgroundRectangle stroke_opacity 0 --- manimlib/mobject/mobject.py | 2 +- manimlib/mobject/shape_matchers.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index 02e4d2b2..6eeeec74 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -1107,7 +1107,7 @@ class Mobject(Container): # Errors def throw_error_if_no_points(self): if self.has_no_points(): - message = "Cannot call Mobject.{}" +\ + message = "Cannot call Mobject.{} " +\ "for a Mobject with no points" caller_name = sys._getframe(1).f_code.co_name raise Exception(message.format(caller_name)) diff --git a/manimlib/mobject/shape_matchers.py b/manimlib/mobject/shape_matchers.py index d3e1e089..a0f46229 100644 --- a/manimlib/mobject/shape_matchers.py +++ b/manimlib/mobject/shape_matchers.py @@ -25,6 +25,7 @@ class BackgroundRectangle(SurroundingRectangle): CONFIG = { "color": BLACK, "stroke_width": 0, + "stroke_opacity": 0, "fill_opacity": 0.75, "buff": 0 }