displayable method

bool displayable()

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

bool displayable() => rgb().displayable();