Function lux::color::hex_rgb [] [src]

pub fn hex_rgb(v: u32) -> [f32; 4]

Convertes a u32 to a color by treating the last 3 bytes as rgb tripples.

 let blue_green = hex_rgb(0xDD9911);
 assert_eq!(blue_green, rgb(0xDD, 0x99, 0x11));