UNPKG

@drozdik.m/lerp

Version:
6 lines (5 loc) 199 B
exports.__esModule = true; exports.EaseInQuad = function (from, to, currentFrame, totalFrames) { currentFrame /= totalFrames; return (to - from) * currentFrame * currentFrame + from; };