The Science of Color Inversion
Color inversion reverses each channel of a pixel's RGB value. For every pixel, the formula is simple: Inverted = 255 − Original. A bright red pixel (255, 0, 0) becomes cyan (0, 255, 255). A white pixel (255, 255, 255) becomes black (0, 0, 0). This mathematical operation produces the "negative" of any image — the same effect used in photographic film processing since the 1800s.