[][src]Function photon::effects::primary

pub fn primary(photon_image: &mut PhotonImage)

Reduces an image to the primary colours.

Arguments

Example

// For example, to add a primary colour effect to an image of type `DynamicImage`:
use photon::effects;
photon::effects::primary(img);