# Gimp.Gradient.prototype.segment_get_coloring_type

    function segment_get_coloring_type(segment: Number(gint)): [ok: Boolean, coloring_type: Gimp.GradientSegmentColor] {
        // Gjs wrapper for gimp_gradient_segment_get_coloring_type()
    }

Gets the gradient segment's coloring type

Gets the coloring type 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.

coloring_type

  The coloring type of the segment.