lerp
bare-bones linear interpolation function
Last updated 11 years ago by mattdesl .
MIT · Repository · Bugs · Original npm
$ cnpm install lerp 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.3                                ...           latest (11 years ago)

1 Versions

  • 1.0.3                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org