copyGammaToLinear method
Implementation
Color copyGammaToLinear(Color color, [double gammaFactor = 2.0]) {
r = Math.pow(color.r, gammaFactor).toDouble();
g = Math.pow(color.g, gammaFactor).toDouble();
b = Math.pow(color.b, gammaFactor).toDouble();
return this;
}