Table of Contents

Class GradientExtensions

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

Extension methods for Unity's Gradient class.

[Version(1, 0, 0)]
public static class GradientExtensions
Inheritance
GradientExtensions
Inherited Members

Methods

GetLerp(Color, Color)

Returns a gradient that represents a linear interpolation between two colors.

SampleEvenly(Gradient, int, float)

Returns a list of colors sampled evenly across the gradient.

SampleEvenly<TColor>(Gradient<TColor>, int, float)

Returns a list of colors sampled evenly across the gradient.