mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 21:08:53 +00:00
Make BackgroundRectangle stroke_opacity 0
This commit is contained in:
parent
ee04922400
commit
876f2c3419
2 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue