class
ColorGradient
Represents a range of color values over some parameters, similar to a curve.
Internally represented as a set of keys that get interpolated between. Stores colors as 32-bit integers, and is therefor unable to represent a color range outside of [0, 1] - see ColorGradientHDR for an alternative.
Public
Methods
Evaluate
Evaluates a color at the specified .
SetKeys
Keys that control the gradient, sorted by time from first to last.
Key times should be in range [0, 1].
GetKeys
GetNumKeys
Returns the number of color keys in the gradient.
GetKey
Returns the color key at the specified index.
If out of range an empty key is returned.
SetConstant
Specify a "gradient" that represents a single color value.
GetDuration
Returns the duration over which the gradient values are interpolated over.
Corresponds to the time value of the final keyframe.
GetTimeRange
Returns the time of the first and last keyframe in the gradient.