namespace BizHawk.Common { public static class Colors { /// This is just Color.FromArgb(alpha, red, green, blue).ToArgb() with extra steps. public static int ARGB(byte red, byte green, byte blue, byte alpha = 0xFF) => unchecked((int) ((uint) (alpha << 24) | (uint) (red << 16) | (uint) (green << 8) | blue)); #if false public static int Luminosity(byte lum) => ARGB(lum, lum, lum); #endif } }