Gimp.Gradient.segment_set_left_color
@accepts(Gimp.Gradient, int, Gimp.RGB, float)
@returns(bool)
def segment_set_left_color(self, segment, color, opacity):
# Python wrapper for gimp_gradient_segment_set_left_color()
Sets the left endpoint color of a segment
Sets the color of the left endpoint the indexed segment of the gradient. Returns an error when gradient is not editable or index is out of range.
Since 2.2
- self
The gradient.
- segment
The index of a segment within the gradient.
- color
The color to set.
- opacity
The opacity to set for the endpoint.
- Returns