[][src]Function photon::colour_spaces::saturate_hsv

pub fn saturate_hsv(img: &mut PhotonImage, level: f32)

Increase the image's saturation in the HSV colour space.

Arguments

Example

// For example to increase saturation by 30% in the HSV colour space:
use photon::color_spaces::saturate_hsv;
 
// Open the image. A PhotonImage is returned.
let img: PhotonImage = open_image("images/flowers.PNG");
 
saturate_hsv(&mut img, 0.3);