fn from_u8(c: u8) -> Color {
        match c {
            0 => Color::White,
            1 => Color::LightGrey,
            2 => Color::DarkGrey,
            3 => Color::Black,
            _ => panic!("Invalid color: 0x{:02x}", c),
        }
    }
/// Create a color from a u8 in the range 0...3
Create a color from a u8 in the range 0...3
Create a color from a u8 in the range 0 ... 3
fn from_u8(c: u8) -> Color {
        match c {
            0 => Color::White,
            1 => Color::LightGrey,
            2 => Color::DarkGrey,
            3 => Color::Black,
            _ => panic!("Invalid color: 0x{:02x}", c),
        }
    }
fn from_u8 ( c : u8 ) -> Color { match c { 0 => Color :: White , 1 => Color :: LightGrey , 2 => Color :: DarkGrey , 3 => Color :: Black , _ => panic ! ( " " c ) , } }
Create a color from a u8 in the range 0...3
Create a color from a u8 in the range 0 ... 3
c
u8
c
u8