rgb2lrgb static method

double rgb2lrgb(
  1. double x
)

Implementation

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