Set the paint to XOR its color with the source color
===

Is there a way to set the Paint object to draw pixels with a color that's the XOR of the color set to the paint and the color of the pixel it's overriding? I thought about a color filter, but could not find anything useful in the existing ones. Do I need to write a new one? Is it the right direction to go? Thanks.