IColorRamp
Description
- Derived from
- Extended by
-
ColorRampBase abstract
Base interface for classes that provide a color ramp.
A color ramp maps input coordinates within a specific range (see Range) to color values:
Start End
<------X======X------> input coordinates
A______/ \______B constant colors
\______/ interpolated colors
The color values outside the range are always constant (but not necessarily the same). This interface does not specify how color values inside the range are computed, only that it must be possible to produce a color value for any input coordinate.
Public / Methods
Get
2 overloads
Returns the color for a point on this color ramp.
Returns the color for an interval on this color ramp.
Transform
Transforms the input coordinate of this color ramp.
Input X-coordinates are transformed as follows:
xOut = offset + scale * xIn
xIn = (xOut - offset) / scale
= xOut / scale - offset / scale
where xIn refers to the coordinate passed to the returned color ramp and xOut is the coordinate that is passed to this color ramp.
Extensions
ToColorBuffer
2 overloads
Converts this color ramp into a color buffer with a height of one.
- See also
Converts this color ramp into a color buffer with a height of one.