Gimp.context_set_foreground

@accepts(Gimp.RGB)
@returns(bool)
def context_set_foreground(foreground):
    # Python wrapper for gimp_context_set_foreground()
  

Set the current GIMP foreground color.

Sets the current GIMP foreground color. After this is set, operations which use foreground such as paint tools, blending, and bucket fill will use the new value.

Since 2.2

foreground

The foreground color.

Returns