The negation algorithm is very simple.
Pixel negation is much more than simply an exercise.
Many computer programs use pixel negation to indicate that an image has been selected.
The negation process is computationally cheap and totally reversible.