## Requirements: ## Windows >=10 ## Python (installed normally as a Windows program; not part of Windows Subsystem for Linux) ## win_magnification package (install using "pip install win_magnification"s) ## Run through a command prompt window, as in: ## python.exe invert_colors.py import win_magnification as mag mag.initialize() ## The next command flips the blue and the red channels. ## It uses a 5*5 matrix specifying the linear transformation applied to the colors. ## The order is (R,G,B,alpha,constant), the latter being used to implement affine transformations. mag.set_fullscreen_color_effect((0,0,1,0,0, 0,1,0,0,0, 1,0,0,0,0, 0,0,0,1,0, 0,0,0,0,1)) print("Press ENTER to restore original colors") input() # These are apparently not needed, since Windows restores colors upon exiting #mag.reset_fullscreen_color_effect() #mag.finalize()