<?xml version="1.0"?>
<page id="Gimp.ProcedureConfig.set_color_array"
      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.ProcedureConfig" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_procedure_config_set_color_array</api:name>
      <api:arg>
        <api:type>Gimp.ProcedureConfig</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>property_name</api:name>
      </api:arg>
      <api:arg>
        <api:type>[Gegl.Color]</api:type>
        <api:name>colors</api:name>
      </api:arg>
      <api:arg>
        <api:type>gsize</api:type>
        <api:name>n_colors</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.ProcedureConfig.set_color_array</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.ProcedureConfig, unicode, [Gegl.Color], gsize)
@returns(none)
def set_color_array(self, property_name, colors, n_colors):
    # Python wrapper for gimp_procedure_config_set_color_array()
  </code></synopsis>
  <p>A function for bindings to set a [type@ColorArray] property. Setting
these with [method@GObject.Object.set] or [method@GObject.Object.set_property] won't
[work for the time being](https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/492)
so all our boxed array types must be set and get using these
alternative functions instead.</p>  <p>C plug-ins should just use [method@GObject.Object.set].</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>self</code></title>
  <p>a <link xref="Gimp.ProcedureConfig"/></p>
</item>
<item>
<title><code>property_name</code></title>
  <p>the name of a [struct@ParamSpecCoreObjectArray] param spec.</p>
</item>
<item>
<title><code>colors</code></title>
  <p>an array of [class@Gegl.Color].</p>
</item>
<item>
<title><code>n_colors</code></title>
  <p>the numbers of <code>colors</code>.</p>
</item>
</terms>

</page>
