pub trait RgbChannels {
    fn split_rgb<S: RgbStandard>(rgb: Rgba<S, u8>) -> (u8, u8, u8, u8);
    fn combine_rgb<S: RgbStandard>(channels: (u8, u8, u8, u8)) -> Rgba<S, u8>;
}
Expand description

Splits and combines RGB(A) types with some channel ordering. Channels may be ordered as Abgr, Argb, Bgra, or Rgba.

Required Methods

Split RGBA components into a (u8, u8, u8, u8) tuple.

Create an RGBA color from a (u8, u8, u8, u8) tuple.

Implementors