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.
See Invert a mask.