diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-20 00:57:38 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-20 00:57:38 +0100 |
| commit | 0ad0a77d494c8cb53d8ac19147d81c696a34adaf (patch) | |
| tree | f2d8550926952cb9e9929554d80b3e0bfc569e0a /cli/app/search | |
| parent | a4171fbbc68d4b57515dec6365cf066387544572 (diff) | |
easing functions
Diffstat (limited to 'cli/app/search')
| -rw-r--r-- | cli/app/search/live.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 27662b0..3d5d17c 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -118,14 +118,14 @@ class SinParam: self.t = 0 def update(self): - self.orbit_time.assign(self.orbit_time.value + (np.pi * 2) / self.orbit_speed.value, immediate=True) + self.orbit_time.assign(self.orbit_time.value + (np.pi) / self.orbit_speed.value, immediate=True) self.t += 1 # randomize the orbit when possible - # - check if we've done one full orbital period # - check if the noise is done transitioning - # if self.lerp and self.t >= self.orbit_speed.value and self.noise.n.value == 0 or self.noise.n.value == 1: - # self.noise.switch() - # self.t = 0 + if self.lerp and self.t >= self.orbit_speed.value and self.noise.n.value == 0 or self.noise.n.value == 1: + self.noise.switch() + self.t = 0 class LerpParam: def __init__(self, name, shape, a_in=None, b_in=None, datatype="noise", ease=easing.QuadEaseInOut): |
