[][src]Function photon_rs::colour_spaces::__wasm_bindgen_generated_hue_rotate_lch

pub extern "C" fn __wasm_bindgen_generated_hue_rotate_lch(
    arg0: <PhotonImage as RefMutFromWasmAbi>::Abi,
    arg1: <f32 as FromWasmAbi>::Abi
) -> <() as ReturnWasmAbi>::Abi

Shift hue by a specified number of degrees in the LCh colour space.

Arguments

  • img - A PhotonImage.
  • mode - A float value from 0 to 1 which is the amount to shift the hue by, or hue rotate by.

Example

// For example to hue rotate/shift the hue by 120 degrees in the HSL colour space:
use photon::color_spaces::hue_rotate_lch;
 
// Open the image. A PhotonImage is returned.
let img: PhotonImage = open_image("images/flowers.PNG");
 
hue_rotate_lch(&mut img, 120);