8000 GitHub - mattdesl/lerp: bare-bones linear interpolation function
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mattdesl/lerp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

bare-bones linear interpolation function

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0