[][src]Function photon::colour_spaces::lighten_lch

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

Lighten an image by a specified amount in the LCh colour space.

Arguments

Example

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