Make BackgroundRectangle stroke_opacity 0

This commit is contained in:
Grant Sanderson 2019-03-24 11:34:07 -07:00
parent ee04922400
commit 876f2c3419
2 changed files with 2 additions and 1 deletions

View file

@ -1107,7 +1107,7 @@ class Mobject(Container):
# Errors # Errors
def throw_error_if_no_points(self): def throw_error_if_no_points(self):
if self.has_no_points(): if self.has_no_points():
message = "Cannot call Mobject.{}" +\ message = "Cannot call Mobject.{} " +\
"for a Mobject with no points" "for a Mobject with no points"
caller_name = sys._getframe(1).f_code.co_name caller_name = sys._getframe(1).f_code.co_name
raise Exception(message.format(caller_name)) raise Exception(message.format(caller_name))

View file

@ -25,6 +25,7 @@ class BackgroundRectangle(SurroundingRectangle):
CONFIG = { CONFIG = {
"color": BLACK, "color": BLACK,
"stroke_width": 0, "stroke_width": 0,
"stroke_opacity": 0,
"fill_opacity": 0.75, "fill_opacity": 0.75,
"buff": 0 "buff": 0
} }