Gimp.Gradient.prototype.segment_get_blending_function

function segment_get_blending_function(segment: Number(gint)): [ok: Boolean, blend_func: Gimp.GradientSegmentType] {
    // Gjs wrapper for gimp_gradient_segment_get_blending_function()
}
  

Gets the gradient segment's blending function

Gets the blending function of the segment at the index. 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.

blend_func

The blending function of the segment.