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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    116,559
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    116,559
  • 1.0.2
    2
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i lerp

Weekly Downloads

116,563

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mattdesl