1.1.2 • Published 4 years ago

lerpjs v1.1.2

Weekly downloads
28
License
MIT
Repository
github
Last release
4 years ago

lerp.js npm version

The method of linear interpolation (lerp) to easing animations.

Example

import lerp from 'lerpjs';

/**
 * @param {number} x - first value
 * @param {number} y - second value
 * @param {number} a - amount to interpolate between x and y
 * @return {number}
 */
lerp(0, 100, 0.2); // => 20

License

MIT | Przemysław Tyczyński