Struct LerpColor
Linearly interpolate between two values a and b by ratio t.
Implements
Inherited Members
Namespace: UnityEngine.Splines.Interpolators
Assembly: Unity.Splines.dll
Syntax
public struct LerpColor : IInterpolator<Color>
Methods
Interpolate(Color, Color, float)
Linearly interpolates between a and b by t.
Declaration
public Color Interpolate(Color a, Color b, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | a | Start value, returned when t = 0. |
| Color | b | End value, returned when t = 1. |
| float | t | Interpolation ratio. |
Returns
| Type | Description |
|---|---|
| Color | The interpolated result between the two values. |