segment_get_right_color


Description:

[ Version ( since = "2.2" ) ]
public Color segment_get_right_color (int segment)

Gets the right endpoint color of the segment

Gets the color of the right endpoint color of the segment of the gradient. Returns an error when the segment index is out of range.

Parameters:

this

The gradient.

segment

The index of a segment within the gradient.

Returns:

The return color.