alterPartiColor property

Color alterPartiColor

Implementation

Color get alterPartiColor {
  int _red = partiColor.red;
  int _green = partiColor.green;
  int _blue = partiColor.blue;

  double multiplier = (_red + _green + _blue) / 1.5;

  int _newRed = min((_red + multiplier).round(), 255);
  int _newGreen = min((_green + multiplier).round(), 255);
  int _newBlue = min((_blue + multiplier).round(), 255);

  return Color.fromARGB(255, _newRed, _newGreen, _newBlue);
}