- addPoint
void addPoint(double offset, Color color)
Adds the specified color to the end of the ramp, with the specified offset
- getColor
Color getColor(long point)
Returns the color of the ramp color at index point
- getColors
PoolColorArray getColors()
- getOffset
double getOffset(long point)
Returns the offset of the ramp color at index point
- getOffsets
PoolRealArray getOffsets()
- getPointCount
long getPointCount()
Returns the number of colors in the ramp
- interpolate
Color interpolate(double offset)
Returns the interpolated color specified by offset
- opAssign
Gradient opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Gradient other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- removePoint
void removePoint(long offset)
Removes the color at the index offset
- setColor
void setColor(long point, Color color)
Sets the color of the ramp color at index point
- setColors
void setColors(PoolColorArray colors)
- setOffset
void setOffset(long point, double offset)
Sets the offset for the ramp color at index point
- setOffsets
void setOffsets(PoolRealArray offsets)
Color interpolator node.
Given a set of colors, this node will interpolate them in order, meaning, that if you have color 1, color 2 and color3, the ramp will interpolate (generate the colors between two colors) from color 1 to color 2 and from color 2 to color 3. Initially the ramp will have 2 colors (black and white), one (black) at ramp lower offset offset 0 and the other (white) at the ramp higher offset 1.