On the Pebble watch I am trying to overwrite a bitmap layer with text so the text is written white over black areas and black over white areas.
In other environments I would do this with an XOR operation, or create a mask and perform a couple of writes after masking out what I don't want overwritten. I don't see an XOR graphics operator or a mask operator in the Pebble graphics library.
How can this be done?
I'm using C and CloudPebble.
Lynd
Here is a routine to do it. The text layer must be 'under' the graphic layer, then you use layer_set_update_proc() to set the update procedure for the graphic layer to the routine below.