mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Change taper width default
This commit is contained in:
parent
d3a40eb1ac
commit
557e57d95b
1 changed files with 1 additions and 2 deletions
|
@ -198,7 +198,7 @@ class VShowPassingFlash(Animation):
|
||||||
self,
|
self,
|
||||||
vmobject: VMobject,
|
vmobject: VMobject,
|
||||||
time_width: float = 0.3,
|
time_width: float = 0.3,
|
||||||
taper_width: float = 0.02,
|
taper_width: float = 0.05,
|
||||||
remover: bool = True,
|
remover: bool = True,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
|
@ -240,7 +240,6 @@ class VShowPassingFlash(Animation):
|
||||||
tw = self.time_width
|
tw = self.time_width
|
||||||
sigma = tw / 6
|
sigma = tw / 6
|
||||||
mu = interpolate(-tw / 2, 1 + tw / 2, alpha)
|
mu = interpolate(-tw / 2, 1 + tw / 2, alpha)
|
||||||
|
|
||||||
xs = np.linspace(0, 1, len(widths))
|
xs = np.linspace(0, 1, len(widths))
|
||||||
zs = (xs - mu) / sigma
|
zs = (xs - mu) / sigma
|
||||||
gaussian = np.exp(-0.5 * zs * zs)
|
gaussian = np.exp(-0.5 * zs * zs)
|
||||||
|
|
Loading…
Add table
Reference in a new issue