fn from(s: &str) -> Self {
        match s {
            "monochrome1Bit" => ColorScheme::Monochrome1Bit,
            "monochrome8Bit" => ColorScheme::Monochrome8Bit,
            "colorClassic" => ColorScheme::ColorClassic,
            "color24Bit" => ColorScheme::Color24Bit,
            _ => {
                warn!("Unknown color scheme: {}", s);
                ColorScheme::Monochrome1Bit
            }
        }
    }
/// Create a color scheme from a string
Create a color scheme from a string
Create a color scheme from a string
fn from(s: &str) -> Self {
        match s {
            "monochrome1Bit" => ColorScheme::Monochrome1Bit,
            "monochrome8Bit" => ColorScheme::Monochrome8Bit,
            "colorClassic" => ColorScheme::ColorClassic,
            "color24Bit" => ColorScheme::Color24Bit,
            _ => {
                warn!("Unknown color scheme: {}", s);
                ColorScheme::Monochrome1Bit
            }
        }
    }
fn from ( s : & str ) -> Self { match s { " " => ColorScheme :: Monochrome1Bit , " " => ColorScheme :: Monochrome8Bit , " " => ColorScheme :: ColorClassic , " " => ColorScheme :: Color24Bit , _ => { warn ! ( " " s ) ; ColorScheme :: Monochrome1Bit } } }
Create a color scheme from a string
Create a color scheme from a string
s
&str