<?xml version="1.0"?>
<page id="Gimp.color_set_alpha"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_color_set_alpha</api:name>
      <api:arg>
        <api:type>Gegl.Color</api:type>
        <api:name>color</api:name>
      </api:arg>
      <api:arg>
        <api:type>float</api:type>
        <api:name>alpha</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.color_set_alpha</title>
  <synopsis><code mime="text/x-python">
@accepts(Gegl.Color, float)
@returns(none)
def color_set_alpha(color, alpha):
    # Python wrapper for gimp_color_set_alpha()
  </code></synopsis>
  <p>Update the <code>alpha</code> channel, and any other component if necessary (e.g. in case
of premultiplied channels), without changing the format of <code>color</code>.</p>  <p>If <code>color</code> has no alpha component, this function is a no-op.</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>color</code></title>
  <p>a [class@Gegl.Color]</p>
</item>
<item>
<title><code>alpha</code></title>
  <p>new value for the alpha channel.</p>
</item>
</terms>

</page>
