[][src]Function photon::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

Example

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