ColorUtilities.GradientLerp(Gradient, Gradient, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Linearly interpolates between gradients a and b by t
public static UnityEngine.Gradient GradientLerp(UnityEngine.Gradient a, UnityEngine.Gradient b, float t);
static member GradientLerp : UnityEngine.Gradient * UnityEngine.Gradient * single -> UnityEngine.Gradient
Public Shared Function GradientLerp (a As Gradient, b As Gradient, t As Single) As Gradient
Parameters
- a
- UnityEngine.Gradient
- b
- UnityEngine.Gradient
- t
- Single
Returns
The linearly interpolated gradient
Remarks
Taken from https://forum.unity.com/threads/lerp-from-one-gradient-to-another.342561/