Gimp.Gradient.prototype.segment_set_right_color
function segment_set_right_color(segment: Number(gint), color: Gimp.RGB, opacity: Number(gdouble)): Boolean {
// Gjs wrapper for gimp_gradient_segment_set_right_color()
}
Sets the right endpoint color of the segment
Sets the right endpoint color of the segment of the gradient. Returns an error when gradient is not editable or segment index is out of range.
Since 2.2
- segment
The index of a segment within the gradient.
- color
The color to set.
- opacity
The opacity to set for the endpoint.
- Returns
TRUE on success.