Function lux::color::hex_rgba
[−]
[src]
pub fn hex_rgba(v: u32) -> [f32; 4]
Convertes a u32 to a color by treating the 4 bytes as rgb tripples.
let blue_green_transparent = hex_rgba(0xFF550011); assert_eq!(blue_green_transparent, rgba(0xFF, 0x55, 0x00, 0x11));