Programmatically set Windows Desktop Gamma Ramp, using SetDeviceGammaRamp
(GDI32) WinAPI. Please keep in mind, this WinAPI have major limitation on such behaviours, for only example purpose.
SetDeviceGammaRamp
may not work on old graphics card / some of new graphics card. If this happens try using an old computer (if it brokes on Win10 or 11, try using XP to 7). Graphics limited to 65535
array. For more information refer to see msdocs. Documentation, for a bit more explanation you may see pInvoke site. pInvoke-Example