Creates an easing based on ticks.
tickEasing allows you to reset and check for completion. Alternatively, use ticks which is a simple function that just returns a value.
tickEasing
Name of easing, or an easing function
Duration in ticks
Easing
const t = Easings.tickEasing(`sineIn`, 1000); // Will take 1000 ticks to completet.compute(); // Each call to `compute` progresses the tick countt.reset(); // Reset to 0t.isDone; // _True_ if finished Copy
const t = Easings.tickEasing(`sineIn`, 1000); // Will take 1000 ticks to completet.compute(); // Each call to `compute` progresses the tick countt.reset(); // Reset to 0t.isDone; // _True_ if finished
Creates an easing based on ticks.
tickEasing
allows you to reset and check for completion. Alternatively, use ticks which is a simple function that just returns a value.