copyLinearToGamma method
Implementation
Color copyLinearToGamma(Color color, [double gammaFactor = 2.0]) {
var safeInverse = (gammaFactor > 0) ? (1.0 / gammaFactor) : 1.0;
r = Math.pow(color.r, safeInverse).toDouble();
g = Math.pow(color.g, safeInverse).toDouble();
b = Math.pow(color.b, safeInverse).toDouble();
return this;
}