lerp
v1.0.3
Published
bare-bones linear interpolation function
Downloads
277,541
Maintainers
Readme
lerp
In the fashion of small modules and saving keystrokes; this is a bare-bones linear interpolation function. Same as mix
in GLSL.
var lerp = require('lerp')
var res = lerp(a, b, t);
Usage
lerp(start, end, alpha)
Interpolates from start to end using the given alpha.
License
MIT, see LICENSE.md for details.