<?xml version="1.0"?>
<page id="Gimp.context_get_foreground"
      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_context_get_foreground</api:name>
    </api:function>
  </info>
  <title>Gimp.context_get_foreground</title>
  <synopsis><code mime="text/x-gjs">
function context_get_foreground(): [ok: Boolean, foreground: <link xref="Gimp.RGB">Gimp.RGB</link>] {
    // Gjs wrapper for gimp_context_get_foreground()
}
  </code></synopsis>
  <p>Get the current GIMP foreground color.</p>  <p>Returns the current GIMP foreground color. The foreground color is
used in a variety of tools such as paint tools, blending, and bucket
fill.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>ok</code></title>
  <p>TRUE on success.</p>
</item>
<item>
<title><code>foreground</code></title>
  <p>The foreground color.</p>
</item>
</terms>

</page>
