function loglerp(a, b, t)
return a * (1 - t) ^ 2 + b * t ^ 2
end
Is this the right formula for log lerp?
function loglerp(a, b, t)
return a * (1 - t) ^ 2 + b * t ^ 2
end
Is this the right formula for log lerp?
My a logarithmic lerp I’m assuming you mean an easeOutExpo?
function easeOutExpo(x: number): number {
return x === 1 ? 1 : 1 - pow(2, -10 * x);
}
I mean yes, an easeOutExpo is a type of logarithmic lerp. Sorry
function easeOutExpo(t, b, c, d)
return c * (-math.pow(2, -10 * t / d) + 1) + b
end
What does this do?
function easeOutBack(t, b, c, d, s)
if not s then s = 1.70158 end
t = t / d - 1
return c * (t * t * ((s + 1) * t + s) + 1) + b
end