chiro-canto/node_modules/lerp
2021-04-15 12:29:53 +02:00
..
.npmignore Added free space stat on home page 2021-04-15 12:29:53 +02:00
.travis.yml Added free space stat on home page 2021-04-15 12:29:53 +02:00
index.js Added free space stat on home page 2021-04-15 12:29:53 +02:00
LICENSE.md Added free space stat on home page 2021-04-15 12:29:53 +02:00
package.json Added free space stat on home page 2021-04-15 12:29:53 +02:00
README.md Added free space stat on home page 2021-04-15 12:29:53 +02:00

lerp

Build Status frozen

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

NPM

lerp(start, end, alpha)

Interpolates from start to end using the given alpha.

License

MIT, see LICENSE.md for details.