Change taper width default

This commit is contained in:
Grant Sanderson 2023-01-11 19:27:23 -08:00
parent d3a40eb1ac
commit 557e57d95b

View file

@ -198,7 +198,7 @@ class VShowPassingFlash(Animation):
self,
vmobject: VMobject,
time_width: float = 0.3,
taper_width: float = 0.02,
taper_width: float = 0.05,
remover: bool = True,
**kwargs
):
@ -240,7 +240,6 @@ class VShowPassingFlash(Animation):
tw = self.time_width
sigma = tw / 6
mu = interpolate(-tw / 2, 1 + tw / 2, alpha)
xs = np.linspace(0, 1, len(widths))
zs = (xs - mu) / sigma
gaussian = np.exp(-0.5 * zs * zs)