[][src]Function photon::effects::offset_red

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

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

Arguments

Example

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