<?xml version="1.0"?>
<page id="Gimp.Vectors.stroke_interpolate"
      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.Vectors" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Array(Number(gdouble))</api:type>
      </api:returns>
      <api:name>gimp_vectors_stroke_interpolate</api:name>
      <api:arg>
        <api:type>Number(gint)</api:type>
        <api:name>stroke_id</api:name>
      </api:arg>
      <api:arg>
        <api:type>Number(gdouble)</api:type>
        <api:name>precision</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Vectors.prototype.stroke_interpolate</title>
  <synopsis><code mime="text/x-gjs">
function stroke_interpolate(stroke_id: Number(gint), precision: Number(gdouble)): [return_value: Array(Number(gdouble)), num_coords: Number(gint), closed: Boolean] {
    // Gjs wrapper for gimp_vectors_stroke_interpolate()
}
  </code></synopsis>
  <p>returns polygonal approximation of the stroke.</p>  <p>returns polygonal approximation of the stroke.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>stroke_id</code></title>
  <p>The stroke ID.</p>
</item>
<item>
<title><code>precision</code></title>
  <p>The precision used for the approximation.</p>
</item>
<item>
<title><code>return_value</code></title>
  <p>
         List of the coords along the path (x0, y0, x1, y1, ...).
         The returned value must be freed with g_free().</p>
</item>
<item>
<title><code>num_coords</code></title>
  <p>The number of floats returned.</p>
</item>
<item>
<title><code>closed</code></title>
  <p>Whether the stroke is closed or not.</p>
</item>
</terms>

</page>
