API.Util.Gradient - JuDelCo/Core GitHub Wiki
Namespace: Ju.Gradient
Gradient implementation that uses a clamped lerp function to interpolate between float
.
Gradient implementation that uses a clamped lerp function to interpolate between Color
.
Note: If you implement a Gradient for a custom type, you must provide the lerp function using the SetLerp()
before using Evaluate()
.
If none provided, the default easing used is linear interpolation (no easing).
public void SetLerp(Func<T, T, float, T> lerpFunction);
public void SetEasing(Func<float, float> easingFunction);
public void AddKey(float time, T value);
public void AddKey(GradientKey<T> valueKey);
public T Evaluate(float time);
public void ClearKeys();