Lerp [2 | 3]
Function. Outputs linear interpolation between two values.
Mathematically: A + (B - A) × Interp.
When Interp is 0, the output equals A. When Interp is 1, the output equals B. Between 0 and 1, the output smoothly transitions from A to B.
Commonly used for color transitions, size changes over lifetime, and blending between two states.
Properties & inputs:
- A, B (input | property): The two values to interpolate between.
- Interp (input | property): Interpolation factor in range [0; 1].
Output:
- Interpolated value between A and B.