Gimp.Gradient.segment_set_right_pos

@accepts(Gimp.Gradient, int, float, float)
@returns(bool)
def segment_set_right_pos(self, segment, pos, final_pos):
    # Python wrapper for gimp_gradient_segment_set_right_pos()
  

Sets the right endpoint position of the segment

Sets the right endpoint position of the segment of the gradient. The final position will be the given fraction from the midpoint of the current segment to the midpoint of the segment to the right. Returns the final position. Returns an error when gradient is not editable or segment index is out of range.

Since 2.2

self

The gradient.

segment

The index of a segment within the gradient.

pos

The position to set the right endpoint to.

final_pos

The return position.

Returns