operator - method
Color Subtraction Operator
Subtract the red, green, and blue channels
of other
from those of this Color
.
The resultant alpha is maintained from this
.
Implementation
// /// To *also subtract* the `alpha` from each `Color`, see [^].
Color operator -(Color other) => Color.fromARGB(
alpha,
(red - other.red).restricted,
(green - other.green).restricted,
(blue - other.blue).restricted,
);