displayable method
Returns true if and only if the color is displayable on standard hardware.
For example, this returns false for an RGB color if any channel value is less than zero or greater than 255 when rounded, or if the opacity is not in the range [0, 1].
Implementation
@override
bool displayable() {
return (-0.5 <= r && r < 255.5) &&
(-0.5 <= g && g < 255.5) &&
(-0.5 <= b && b < 255.5) &&
(0 <= opacity && opacity <= 1);
}