Usage
Module Modulation.Easings
Easings can be driven by time or ticks, created by Easings.time or Easings.tick , respectively.
Simple
Using Easings.time or Easings.time we get back a function that in turn produces a value.
This approach is very simple as it has temporality and progress tracking “baked-in”. The downside is you can’t easily check if the duration has elapsed or reset the time.
More practically, you’d call the returned function as part of a loop that updates state in your sketch.
Advanced
An alternative approach is Easings.timeEasing or Easings.tickEasing .
Instead of returning a function you get a Type Modulation.ModulatorTimed instance, which looks like:
To use: