# Gimp.Gradient.prototype.segment_get_middle_pos

    function segment_get_middle_pos(segment: Number(gint)): [ok: Boolean, pos: Number(gdouble)] {
        // Gjs wrapper for gimp_gradient_segment_get_middle_pos()
    }

Gets the midpoint position of the segment

Gets the position of the midpoint of the segment of the gradient. Returns an error when the segment index is out of range.

Since 2.2

segment

  The index of a segment within the gradient.

ok

  TRUE on success.

pos

  The return position.