[][src]Function photon_rs::effects::offset_green

pub fn offset_green(img: &mut PhotonImage, offset_amt: u32)

Adds an offset to the green channel by a certain number of pixels.

Arguments

  • img - A PhotonImage that contains a view into the image.
  • offset - The offset you want to move the green channel by.

Example

// For example, to add an offset to the green channel by 30 pixels.
use photon::effects;
photon::effects::offset_green(img, 40);