<?xml version="1.0"?>
<page id="Gimp.Gradient.segment_range_set_coloring_type"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Gradient" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Boolean</api:type>
      </api:returns>
      <api:name>gimp_gradient_segment_range_set_coloring_type</api:name>
      <api:arg>
        <api:type>Number(gint)</api:type>
        <api:name>start_segment</api:name>
      </api:arg>
      <api:arg>
        <api:type>Number(gint)</api:type>
        <api:name>end_segment</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.GradientSegmentColor</api:type>
        <api:name>coloring_type</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Gradient.prototype.segment_range_set_coloring_type</title>
  <synopsis><code mime="text/x-gjs">
function segment_range_set_coloring_type(start_segment: Number(gint), end_segment: Number(gint), coloring_type: <link xref="Gimp.GradientSegmentColor">Gimp.GradientSegmentColor</link>): Boolean {
    // Gjs wrapper for gimp_gradient_segment_range_set_coloring_type()
}
  </code></synopsis>
  <p>Sets the coloring type of a range of segments</p>  <p>Sets the coloring type of a range of segments.
Returns an error when a segment index is out of range, or gradient
is not editable.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>start_segment</code></title>
  <p>Index of the first segment to operate on.</p>
</item>
<item>
<title><code>end_segment</code></title>
  <p>Index of the last segment to operate on. If negative, the range will extend to the end segment.</p>
</item>
<item>
<title><code>coloring_type</code></title>
  <p>The coloring type.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>TRUE on success.</p>
</item>
</terms>

</page>
