[][src]Function photon::colour_spaces::hsl

pub fn hsl(photon_image: &mut PhotonImage, mode: &str, amt: f32)

Image manipulation effects in the HSL colour space.

Effects include:

Arguments

Example

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