I am trying to draw into an Image using XOR mode. Jules once commented, “yeeuch… xor is so 1980s!”.
Yes. Exactly! I am trying to resurrect an old experimental music language from the 1980’s and it used XOR mode graphics to do rubber-banding. I am trying to keep as true as I can to the original language, warts and all. XOR has a certain nasty look that cannot easily be recreated using other means. In these days when people are slobbering over vintage analog synths and vinyl records, I hope you will understand.
Quartz has an XOR mode that can be set using:
I believe that should work for B/W or coloured pixels.
Is there a way to do XOR mode drawing in JUCE, or to access the underlying Mac object and turn on kCGBlendModeExclusion?