operator + method
Implementation
Color operator +(Color other) {
return Color(
min(red + other.red, 255),
min(green + other.green, 255),
min(blue + other.blue, 255),
alpha == null
? alpha
: min(alpha! + (other.alpha == null ? 1.0 : other.alpha!), 1.0));
}