Function photon_rs::filters::monochrome_tint
source · pub fn monochrome_tint(img: &mut PhotonImage, rgb_color: Rgb)
Expand description
Monochrome tint effect with increased contrast
Arguments
img
- A PhotonImage.rgb_color
- RGB color
Example
use photon_rs::filters::monochrome_tint;
use photon_rs::native::open_image;
use photon_rs::Rgb;
let mut img = open_image("img.jpg").expect("File should open");
let rgb_color = Rgb::new(12, 12, 10);
monochrome_tint(&mut img, rgb_color);