I'm using PyGame to manipulate and draw images.
For example, this is an image I create using draw.rect:
I need to run my code on AWS, so I followed the instructions to let pygame run on a headless server, and added os.environ["SDL_VIDEODRIVER"] = "dummy"
to my code.
However now, the images that are produce interpret the same RGB values differently (especially the blue channel).
For example, the off-white in the original image is (254, 252, 213), but in the second image its produces as a (255,255,255).
Why does this happen?