Color
pub fn luminance(rgb: [u8; 3]) -> f64
Get luminance from rgb.
let lum = Color::luminance([255, 255, 255]); assert_eq!(1.0, lum);