Simple color invert area.
Can use with either sprite , textureRect , ColorRect. It will preserve transparent pixel and invert color of anything below it.
Shader code
shader_type canvas_item;
void fragment(){
vec4 color = vec4(texture(SCREEN_TEXTURE, SCREEN_UV).rgb, texture(TEXTURE, UV).a);
COLOR = vec4(1.0 - color.rgb, color.a);
}