# Gimp.context_get_foreground

    function context_get_foreground(): [ok: Boolean, foreground: Gimp.RGB] {
        // Gjs wrapper for gimp_context_get_foreground()
    }

Get the current GIMP foreground color.

Returns the current GIMP foreground color. The foreground color is used in a variety of tools such as paint tools, blending, and bucket fill.

Since 2.2

ok

  TRUE on success.

foreground

  The foreground color.