copyGammaToLinear method

Color copyGammaToLinear(
  1. Color color, [
  2. double gammaFactor = 2.0
])

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;
}