Gimp.context_swap_colors

function context_swap_colors(): Boolean {
    // Gjs wrapper for gimp_context_swap_colors()
}
  

Swap the current GIMP foreground and background colors.

Swaps the current GIMP foreground and background colors, so that the new foreground color becomes the old background color and vice versa.

Since 2.2

Returns

TRUE on success.