<?xml version="1.0"?>
<page id="Gimp.rgba_parse_css"
      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>Boolean</api:type>
      </api:returns>
      <api:name>gimp_rgba_parse_css</api:name>
      <api:arg>
        <api:type>Gimp.RGB</api:type>
        <api:name>rgba</api:name>
      </api:arg>
      <api:arg>
        <api:type>Array(String)</api:type>
        <api:name>css</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.rgba_parse_css</title>
  <synopsis><code mime="text/x-gjs">
function rgba_parse_css(rgba: <link xref="Gimp.RGB">Gimp.RGB</link>, css: Array(String)): Boolean {
    // Gjs wrapper for gimp_rgba_parse_css()
}
  </code></synopsis>
  <p>Similar to <link xref="Gimp.RGB.parse_css"/> but handles RGB colors with alpha
channel in the numerical CSS notation (<code>rgba(255,0,0,255)</code>
or <code>rgba(100%,0%,0%,1000%)</code>).</p>  <p>It doesn't handle the hexadecimal notation or color names because
they leave the alpha channel unspecified.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>rgba</code></title>
  <p>a <link xref="Gimp.RGB"/> struct used to return the parsed color</p>
</item>
<item>
<title><code>css</code></title>
  <p>a string describing a color in CSS notation</p>
</item>
<item>
<title><code>Returns</code></title>
  <p><code>true</code> if <code>css</code> was parsed successfully and @rgb has been
              set, <code>false</code> otherwise</p>
</item>
</terms>

</page>
