# Gimp.gradient_segment_set_middle_pos

    function gradient_segment_set_middle_pos(name: String, segment: Number(gint), pos: Number(gdouble)): [ok: Boolean, final_pos: Number(gdouble)] {
        // Gjs wrapper for gimp_gradient_segment_set_middle_pos()
    }

Sets the middle point position of the specified segment

This procedure sets the middle point position of the specified segment of the specified gradient. The final position will be between the two endpoints of the segment. This procedure returns the final position.

Since 2.2

name

  The gradient name.

segment

  The index of the segment within the gradient.

pos

  The position to set the guidepoint to.

ok

  TRUE on success.

final_pos

  The return position.