photon_rs::monochrome
pub fn grayscale(photon_image: &mut PhotonImage)
Convert an image to grayscale using the conventional averaging algorithm.
photon_image
// For example, to convert an image of type `PhotonImage` to greyscale: use photon::monochrome; monochrome::grayscale(&mut img);