mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Make VFadeIn work on alpha of stroke
This commit is contained in:
parent
69207369f2
commit
535522d86b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue