Make sure set_opacity changes background stroke as well

This commit is contained in:
Grant Sanderson 2019-06-13 09:26:34 -07:00
parent 6214ea7a01
commit 542ddb9afd

View file

@ -242,6 +242,7 @@ class VMobject(Mobject):
def set_opacity(self, opacity, family=True):
self.set_fill(opacity=opacity, family=family)
self.set_stroke(opacity=opacity, family=family)
self.set_stroke(opacity=opacity, family=family, background=True)
return self
def fade(self, darkness=0.5, family=True):