Class Gradient<TColor>
[Version(2, 1, 0)]
public class Gradient<TColor>
Type Parameters
TColor
- Inheritance
-
Gradient<TColor>
- Derived
- Inherited Members
- Extension Methods
Constructors
- Gradient(TColor, TColor, Func<TColor, TColor, float, TColor>)
Construct a new HSL gradient.
Methods
- Evaluate(float)
Gives the HSL color in the gradient at the given time.
- GetLerp(TColor, TColor, Func<TColor, TColor, float, TColor>)
Returns a gradient that represents a linear interpolation between two colors.
- SampleEvenly(int, float)
Returns a list of HSL colors sampled evenly across the gradient.