Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix DrawBorderThenFill

Grant Sandersonfbcc3b85d3da
diff --git a/manimlib/animation/creation.py b/manimlib/animation/creation.py
index d559fadae..b3e5325ce 100644
--- a/manimlib/animation/creation.py
+++ b/manimlib/animation/creation.py
@@ -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):