[−][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
img
- A PhotonImage that contains a view into the image.offset
- The offset you want to move the red channel by.
Example
// For example, to add an offset to the red channel by 30 pixels. use photon::effects; photon::effects::offset_red(img, 30);