mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Fix DrawBorderThenFill
This commit is contained in:
parent
f5420b24ca
commit
fbcc3b85d3
1 changed files with 5 additions and 4 deletions
|
@ -64,10 +64,11 @@ class DrawBorderThenFill(Animation):
|
||||||
def get_outline(self):
|
def get_outline(self):
|
||||||
outline = self.mobject.copy()
|
outline = self.mobject.copy()
|
||||||
outline.set_fill(opacity=0)
|
outline.set_fill(opacity=0)
|
||||||
outline.set_stroke(
|
for sm in outline.family_members_with_points():
|
||||||
color=self.get_stroke_color(outline),
|
sm.set_stroke(
|
||||||
width=self.stroke_width
|
color=self.get_stroke_color(sm),
|
||||||
)
|
width=self.stroke_width
|
||||||
|
)
|
||||||
return outline
|
return outline
|
||||||
|
|
||||||
def get_stroke_color(self, vmobject):
|
def get_stroke_color(self, vmobject):
|
||||||
|
|
Loading…
Add table
Reference in a new issue