- rgb-lerp color_1 color_2 tprocedure
- rgb8-lerp color_1 color_2 tprocedure
- hsl-lerp color_1 color_2 tprocedure
Mix color_1 and color_2 using linear interpolation. rgb8-lerp truncates each component to an integer. The result type and color space used depends on the procedure. The alpha values are interpolated.
t is the interpolation factor, which controls the mix proportion. 0 means use only color_1, 1 means use only color_2, 0.5 means halfway between color_1 and color_2. You can also perform linear extrapolation by passing a t less than 0 or greater than 1.