pub(crate) fn grayscale(data: &[u8]) -> u8
Convert a 24-bit RGB (color) value to a 8-bit luma/brightness (grayscale) value