UNPKG

@drozdik.m/lerp

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