Robert Penner's easing functions in TSL.
npm install tsl-easingsA collection of Robert Penner's easing functions implemented in TSL (Three.js Shader Language) for use with Three.js, WebGL, and WebGPU.
Read more about TSL here
``bash`
npm install tsl-easings
`javascript`
import { easeInOutCubic, easeOutQuad } from 'tsl-easings';
// Use in your TSL code context
let easedValue = easeInOutCubic(value);
$3
- easeInQuad
- easeOutQuad
- easeInOutQuad$3
- easeInCubic
- easeOutCubic
- easeInOutCubic$3
- easeInQuart
- easeOutQuart
- easeInOutQuart$3
- easeInQuint
- easeOutQuint
- easeInOutQuint$3
- easeInSine
- easeOutSine
- easeInOutSine$3
- easeInExpo
- easeOutExpo
- easeInOutExpo$3
- easeInCircular
- easeOutCircular
- easeInOutCircular$3
- easeInBack
- easeOutBack
- easeInOutBack$3
- easeInElastic
- easeOutElastic
- easeInOutElastic$3
- easeInBounce
- easeOutBounce
- easeInOutBounceAPI
Each easing function takes a single parameter
t` which should be a value between 0 and 1, and returns an eased value.MIT © Yuri Artiukh