mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 13:34:19 +08:00
Make VFadeIn work on alpha of stroke
This commit is contained in:
@ -199,7 +199,7 @@ class VFadeIn(Animation):
|
|||||||
"""
|
"""
|
||||||
def update_submobject(self, submobject, starting_submobject, alpha):
|
def update_submobject(self, submobject, starting_submobject, alpha):
|
||||||
submobject.set_stroke(
|
submobject.set_stroke(
|
||||||
width=interpolate(0, starting_submobject.get_stroke_width(), alpha)
|
opacity=interpolate(0, starting_submobject.get_stroke_opacity(), alpha)
|
||||||
)
|
)
|
||||||
submobject.set_fill(
|
submobject.set_fill(
|
||||||
opacity=interpolate(0, starting_submobject.get_fill_opacity(), alpha)
|
opacity=interpolate(0, starting_submobject.get_fill_opacity(), alpha)
|
||||||
|
Reference in New Issue
Block a user