Fix DrawBorderThenFill

This commit is contained in:
Grant Sanderson 2019-03-24 11:32:12 -07:00
parent f5420b24ca
commit fbcc3b85d3

View file

@ -64,10 +64,11 @@ class DrawBorderThenFill(Animation):
def get_outline(self):
outline = self.mobject.copy()
outline.set_fill(opacity=0)
outline.set_stroke(
color=self.get_stroke_color(outline),
width=self.stroke_width
)
for sm in outline.family_members_with_points():
sm.set_stroke(
color=self.get_stroke_color(sm),
width=self.stroke_width
)
return outline
def get_stroke_color(self, vmobject):