bmp::px! [-] [+] [src]

macro_rules! px {
    ($r:expr, $g:expr, $b:expr) => {
        Pixel { r: $r as u8, g: $g as u8, b: $b as u8 }
    }
}

Macro to generate a Pixel from r, g and b values.