In Windows > Editors > Canvas Layer Editor, choose Edit > Inver layer.
This tool inverts the RGB colors in the image. For example, red (255,0,0) becomes cyan (0, 255, 255).
This tool does not affect Shape layers.
When applied to a mask layer, or invisibility mask layer, it swaps the masked and unmasked regions, just like Edit > Invert Mask or Edit > Invert > Invisibility Mask.
See Invert a mask.