Color.Lerp

static Color Lerp(Color a, Color b, float t)

This will linearly blend between two different colors! Best done on linear colors, rather than gamma corrected colors, but will work either way. This will not clamp the percentage to the 0-1 range.

   
Color a The first color, this will be the result if t is 0.
Color b The second color, this will be the result if t is 1.
float t A percentage representing the blend between a and b. This is not clamped to the 0-1 range, and will result in extrapolation outside this range.
RETURNS: Color A blended color.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!