package ansifmt
Module Color.ChannelSource
Represents an RGB channel - either red, green, or blue.
to_int8 channel tries to convert the channel's value into a Int8 value.
If it fails, it returns the channel data wrapped in the Error variant. This is because this function is often applied in batch to every channel of an RGB component, so the user can trace which channel's value was invalid.