segment_set_right_color


Description:

[ Version ( since = "2.2" ) ]
public bool segment_set_right_color (int segment, Color color)

Sets the right endpoint color of the segment

Sets the right endpoint color of the segment of the gradient. The alpha channel of the [class@Gegl.Color] is taken into account. Returns an error when gradient is not editable or segment index is out of range.

Parameters:

this

The gradient.

segment

The index of a segment within the gradient.

color

The color to set.

Returns:

TRUE on success.