# Gimp.gradient_segment_range_set_coloring_type

    function gradient_segment_range_set_coloring_type(name: String, start_segment: Number(gint), end_segment: Number(gint), coloring_type: Gimp.GradientSegmentColor): Boolean {
        // Gjs wrapper for gimp_gradient_segment_range_set_coloring_type()
    }

Change the coloring type of a segments range

This function changes the coloring type of a segment range to the specified coloring type.

Since 2.2

name

  The gradient name.

start_segment

  The index of the first segment to operate on.

end_segment

  The index of the last segment to operate on. If negative, the selection will extend to the end of the string.

coloring_type

  The coloring type.

Returns

  TRUE on success.