pub fn rgb(&self, c: Color) -> Option<(u8, u8, u8)> {
        match (self.color_scheme, c) {
            (ColorScheme::Monochrome1Bit, Color::Legacy(v)) => {
                self.rgb_monochrome_1(v)
            }
            (ColorScheme::Monochrome1Bit, _) => None,
            (ColorScheme::Monochrome8Bit, Color::Legacy(v)) => {
                self.rgb_monochrome_8(v)
            }
            (ColorScheme::Monochrome8Bit, _) => None,
            (_, Color::Legacy(v)) => ColorCtx::rgb_classic(v),
            (ColorScheme::Color24Bit, Color::RGB(r, g, b)) => Some((r, g, b)),
            _ => None,
        }
    }
/// Get RGB for the specified color.
Get RGB for the specified color.
Get RGB for the specified color .
pub fn rgb(&self, c: Color) -> Option<(u8, u8, u8)> {
        match (self.color_scheme, c) {
            (ColorScheme::Monochrome1Bit, Color::Legacy(v)) => {
                self.rgb_monochrome_1(v)
            }
            (ColorScheme::Monochrome1Bit, _) => None,
            (ColorScheme::Monochrome8Bit, Color::Legacy(v)) => {
                self.rgb_monochrome_8(v)
            }
            (ColorScheme::Monochrome8Bit, _) => None,
            (_, Color::Legacy(v)) => ColorCtx::rgb_classic(v),
            (ColorScheme::Color24Bit, Color::RGB(r, g, b)) => Some((r, g, b)),
            _ => None,
        }
    }
pub fn rgb ( & self , c : Color ) -> Option < ( u8 , u8 , u8 ) > { match ( self . color_scheme , c ) { ( ColorScheme :: Monochrome1Bit , Color :: Legacy ( v ) ) => { self . rgb_monochrome_1 ( v ) } ( ColorScheme :: Monochrome1Bit , _ ) => None , ( ColorScheme :: Monochrome8Bit , Color :: Legacy ( v ) ) => { self . rgb_monochrome_8 ( v ) } ( ColorScheme :: Monochrome8Bit , _ ) => None , ( _ , Color :: Legacy ( v ) ) => ColorCtx :: rgb_classic ( v ) , ( ColorScheme :: Color24Bit , Color :: RGB ( r , g , b ) ) => Some ( ( r , g , b ) ) , _ => None , } }
Get RGB for the specified color.
Get RGB for the specified color .
&self
c
Color