Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Make VFadeIn work on alpha of stroke

Grant Sanderson535522d86b9f
diff --git a/animation/creation.py b/animation/creation.py
index 8b5fa69ef..fb551ac8c 100644
--- a/animation/creation.py
+++ b/animation/creation.py
@@ -199,7 +199,7 @@ class VFadeIn(Animation):
"""
def update_submobject(self, submobject, starting_submobject, alpha):
submobject.set_stroke(
- width=interpolate(0, starting_submobject.get_stroke_width(), alpha)
+ opacity=interpolate(0, starting_submobject.get_stroke_opacity(), alpha)
)
submobject.set_fill(
opacity=interpolate(0, starting_submobject.get_fill_opacity(), alpha)