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