[][src]Function photon::colour_spaces::saturate_hsl

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

Increase the image's saturation by converting each pixel's colour to the HSL colour space and increasing the colour's saturation.

Arguments

Example

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