You process one operation per pixel instead of four. Fast Color Inversion via Bitwise XOR To invert colors without touching Alpha, use the bitwise XOR operator (^). Use the mask 0x00FFFFFF. How it ...
This is an umbrella issue for the LuaJIT 3.0 syntax extensions. The documentation will be evolved and updated in the first comment below. 1 Please feel free to discuss the choice, design and semantics ...