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):
|
||||
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):
|
||||
|
|
Loading…
Add table
Reference in a new issue