Lerp
Also called: linear interpolation
Blends between two values. A parameter t from 0 to 1 picks how far along you are. At 0 you get A, at 1 you get B, at 0.5 the midpoint.
Works on numbers, vectors and colors. It is behind fades, camera smoothing and most easing.
lerp(a, b, t) = a + (b - a) * t
- Further reading
- Catlike Coding: Curves and splines: linear interpolation