delinearized static method
Implementation
static int delinearized(double rgbComponent) {
final normalized = rgbComponent / 100.0;
final delinearized = normalized <= 0.0031308
? normalized * 12.92
: 1.055 * math.pow(normalized, 1.0 / 2.4).toDouble() - 0.055;
return MathUtils.clampInt(0, 255, (delinearized * 255.0).round());
}