What invert does to each pixel
A picture is a grid of pixels, and each pixel has a red, a green and a blue value from 0 to 255. Invert replaces each of the three with 255 minus itself and leaves the transparency alone. It is the same step as the Invert switch in the Adjust panel of FlowPix's canvas, and a test in the code runs both on the same pixels and requires identical bytes.
Because the step is exact, invert a picture twice and the original comes back, value for value; the one place it is not exact is semi-transparent pixels, where the browser can leave a difference of 1.
| Color | Before (R, G, B) | After invert (R, G, B) |
|---|---|---|
| Black | 0, 0, 0 | 255, 255, 255 |
| White | 255, 255, 255 | 0, 0, 0 |
| Mid grey | 128, 128, 128 | 127, 127, 127 |
| Red | 255, 0, 0 | 0, 255, 255 (cyan) |
| Green | 0, 255, 0 | 255, 0, 255 (magenta) |
| Blue | 0, 0, 255 | 255, 255, 0 (yellow) |
| Orange | 255, 128, 0 | 0, 127, 255 (a blue) |
What we measured
On 2 December 2026 we ran this page's tool in Chromium and read the pictures back, pixel by pixel. The inputs were two FlowPix postcards of 768 × 1024 px, a transparent test picture of 300 × 100 px and a JPEG.
| Test | Result |
|---|---|
| Two FlowPix postcards, 768 × 1024 px | Every pixel's red, green and blue was 255 minus the original (786,432 of 786,432 pixels, for each); transparency identical; size unchanged |
| Invert each result again | The original came back: all 3,145,728 bytes equal, for each |
| A transparent PNG, 300 × 100 px | Transparency identical in all 30,000 pixels; the 10,100 opaque pixels exactly 255 minus the original; the 9,900 semi-transparent pixels within 1 of it |
| A JPEG of 315 KB (a postcard saved by the browser at quality 90) | A PNG of 1.97 MB, about six times larger |
A FlowPix postcard, before and after
The slider above compares a Greetings From postcard made in FlowPix with its inverse from this tool: same size, 768 × 1024 px, every pixel's colours reversed.
Invert inside FlowPix
On the canvas, select a picture, open Adjust and turn on Invert. It is the first step of the chain, so the light and color sliders act on the inverted picture as you see it: raising Brightness makes the inverted picture brighter, not the picture underneath. The setting is saved with the other Adjust settings, and Save as new image bakes the result into a new picture beside the original.
If you turn on Black and white after Invert, you get the grey of the inverted colors, which is 255 minus the grey of the original, to within a step of rounding.

