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,
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue