<?xml version="1.0"?>
<page id="Gimp.Gradient.get_uniform_samples"
      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>Array(Gegl.Color)</api:type>
      </api:returns>
      <api:name>gimp_gradient_get_uniform_samples</api:name>
      <api:arg>
        <api:type>Number(gint)</api:type>
        <api:name>num_samples</api:name>
      </api:arg>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>reverse</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Gradient.prototype.get_uniform_samples</title>
  <synopsis><code mime="text/x-gjs">
function get_uniform_samples(num_samples: Number(gint), reverse: Boolean): Array(<link href="../Gegl-0.4/Gegl.Color.html">Gegl.Color</link>) {
    // Gjs wrapper for gimp_gradient_get_uniform_samples()
}
  </code></synopsis>
  <p>Sample the gradient in uniform parts.</p>  <p>Samples colors uniformly across the gradient. It returns a list of
colors for each sample. The minimum number of samples to take is 2,
in which case the returned colors will correspond to the `{ 0.0, 1.0
}` positions in the gradient. For example, if the number of samples
is 3, the procedure will return the colors at positions `{ 0.0, 0.5,
1.0 }`.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>num_samples</code></title>
  <p>The number of samples to take.</p>
</item>
<item>
<title><code>reverse</code></title>
  <p>Use the reverse gradient.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>Color samples.
         The returned value must be freed with <link xref="Gimp.color_array_free"/>.</p>
</item>
</terms>

</page>
