srgbToLinear function

double srgbToLinear(
  1. double c
)

One channel, sRGB-encoded to linear.

Implementation

double srgbToLinear(double c) =>
    c <= 0.04045 ? c / 12.92 : math.pow((c + 0.055) / 1.055, 2.4).toDouble();