static double rgb2lrgb(double x) { return (x /= 255) <= 0.04045 ? x / 12.92 : pow((x + 0.055) / 1.055, 2.4).toDouble(); }