API.Util.Gradient - JuDelCo/Core GitHub Wiki

Namespace: Ju.Gradient

ValueGradient : Gradient < float >

Gradient implementation that uses a clamped lerp function to interpolate between float.

ColorGradient : Gradient < Color >

Gradient implementation that uses a clamped lerp function to interpolate between Color.

Gradient < T >

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();
⚠️ **GitHub.com Fallback** ⚠️