textmode.synth.js / ModulatedArray / ease
Method: ease()
ts
ease(ease): this;Apply easing function to interpolation between array values.
Easing controls the acceleration curve of transitions between values. Automatically enables smoothing when applied. Use built-in easing names or provide a custom function that takes a value 0-1 and returns 0-1.
Available easing functions: 'linear', 'easeInQuad', 'easeOutQuad', 'easeInOutQuad', 'easeInCubic', 'easeOutCubic', 'easeInOutCubic', 'easeInQuart', 'easeOutQuart', 'easeInOutQuart', 'easeInQuint', 'easeOutQuint', 'easeInOutQuint', 'sin'
Parameters
| Parameter | Type | Description |
|---|---|---|
ease | EasingFunction | Easing function name or custom function (default: 'linear') |
Returns
this
The array for chaining