<?xml version="1.0"?>
<page id="Gimp.checks_get_colors"
      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>void</api:type>
      </api:returns>
      <api:name>gimp_checks_get_colors</api:name>
      <api:arg>
        <api:type>Gimp.CheckType</api:type>
        <api:name>type</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gegl.Color</api:type>
        <api:name>color1</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gegl.Color</api:type>
        <api:name>color2</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.checks_get_colors</title>
  <synopsis><code mime="text/x-gjs">
function checks_get_colors(type: <link xref="Gimp.CheckType">Gimp.CheckType</link>, color1: <link href="../Gegl-0.4/Gegl.Color.html">Gegl.Color</link>, color2: <link href="../Gegl-0.4/Gegl.Color.html">Gegl.Color</link>): [color1: <link href="../Gegl-0.4/Gegl.Color.html">Gegl.Color</link>, color2: <link href="../Gegl-0.4/Gegl.Color.html">Gegl.Color</link>] {
    // Gjs wrapper for gimp_checks_get_colors()
}
  </code></synopsis>
  <p>Retrieves the colors to use when drawing a checkerboard for a certain
<link xref="Gimp.CheckType"/> and custom colors.
If <code>type</code> is <link xref="Gimp.CheckType"/>.custom_checks, then <code>color1</code> and <code>color2</code>
will remain untouched, which means you must initialize them to the
values expected for custom checks.</p>  <p>To obtain the user-set colors in Preferences, just call:
</p>
```c

GimpRGB color1 = *(gimp_check_custom_color1 ());
GimpRGB color2 = *(gimp_check_custom_color2 ());
gimp_checks_get_colors (gimp_check_type (), &amp;color1, &amp;color2);

```
<p></p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>type</code></title>
  <p>the checkerboard type</p>
</item>
<item>
<title><code>color1</code></title>
  <p>current custom color and return location for the first color.</p>
</item>
<item>
<title><code>color2</code></title>
  <p>current custom color and return location for the second color.</p>
</item>
<item>
<title><code>color1 (out)</code></title>
  <p>current custom color and return location for the first color.</p>
</item>
<item>
<title><code>color2 (out)</code></title>
  <p>current custom color and return location for the second color.</p>
</item>
</terms>

</page>
