private static double LinearSRgbToSRgb(double c) { return c <= 0.0031308 ? c * 12.92 : Math.Pow(c, 1.0 / 2.4) * 1.055 - 0.055; }