Macro retro_pixel::rgb32[][src]

macro_rules! rgb32 {
    ($r:expr, $g:expr, $b:expr) => { ... };
}

As per rgba32, but automatically selects alpha = 255.

#[macro_use]
extern crate retro_pixel;

fn main() {
  assert_eq!(rgb32!(255, 0, 0), rgba32!(255, 0, 0, 255));
  assert_eq!(rgb32!(0, 255, 0), rgba32!(0, 255, 0, 255));
  assert_eq!(rgb32!(0, 0, 255), rgba32!(0, 0, 255, 255));
}