Gimp.Gradient.prototype.segment_set_left_pos
function segment_set_left_pos(segment: Number(gint), pos: Number(gdouble)): [ok: Boolean, final_pos: Number(gdouble)] {
// Gjs wrapper for gimp_gradient_segment_set_left_pos()
}
Sets the left endpoint position of the segment
Sets the position of the left endpoint of the segment of the gradient. The final position will be the given fraction from the midpoint to the left to the midpoint of the current segment. Returns the final position. 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.
- pos
The position to set the guidepoint to.
- ok
TRUE on success.
- final_pos
The return position.