fromLinear static method

double fromLinear(
  1. double c
)

Implementation

static double fromLinear(double c) {
  if (c <= 0.0031308) {
    return 12.92 * c;
  } else {
    return 1.055 * math.pow(c, 1 / 2.4) - 0.055;
  }
}