Class ColorGradient
Represent a list of colors that creates smooth transitions between each other
Constructors
ColorGradient(params (Color32 color, float time)[])
Represent a list of colors that creates smooth transitions between each other
Declaration
public ColorGradient(params (Color32 color, float time)[] values)
Parameters
Type | Name | Description |
---|---|---|
(Color32 color, float time)[] | values | Color array |
Fields
Values
Declaration
public (Color32 color, float time)[] Values
Methods
Evaluate(float)
Get the smooth color transition for given value
Declaration
public Color32 Evaluate(float time)