npm

Need private packages and team management tools?Check out npm Orgs. »

lerp

1.0.3 • Public • Published

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.

install

npm i lerp

Downloadsweekly downloads

52,419

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability