operator + method

Color operator +(
  1. Color other
)

Average the alpha, red, green, and blue channels of a Color with another other.

Implementation

Color operator +(Color other) => Color.fromARGB(
    ((alpha + other.alpha) ~/ 2)._clamp,
    ((red + red) ~/ 2)._clamp,
    ((green + other.green) ~/ 2)._clamp,
    ((blue + other.blue) ~/ 2)._clamp);