[][src]Function photon::effects::tint

pub fn tint(
    photon_image: &mut PhotonImage,
    r_offset: u32,
    g_offset: u32,
    b_offset: u32
)

Tint an image by adding an offset to averaged RGB channel values.

Arguments

Example

// For example, to tint an image of type `PhotonImage`:
photon::tint(img, 10, 20, 15);