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, 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)