-
Notifications
You must be signed in to change notification settings - Fork 0
API.Util.Gradient
JuDelCo edited this page Oct 11, 2021
·
1 revision
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();
Return to [Home]
- Home
- Install
- Manual
-
Core API
- Services:
- Util:
-
Unity API
- Services:
- Integrations: