linearToSRGB function

double linearToSRGB(
  1. double c
)

Implementation

double linearToSRGB(double c) {
  return (c < 0.0031308) ? c * 12.92 : 1.055 * (Math.pow(c, 0.41666)) - 0.055;
}