Algorithm for calculating inverse color

Viewed 23485

I have a RGB color in the range of 0.0 to 1.0 for each fragment, I need an algorithm to get the inverse of the color, any ideas how can I do this?

2 Answers
Related