offset_red

Function offset_red 

Source
pub fn offset_red(
    image_path: &str,
    image_output_directory: &str,
    parse_filename: &str,
    offset_amt: u32,
) -> Result<(), Box<dyn Error>>
Expand description

Example

extern crate photon_effects;

let input = "/tmp/logo.png";
let output_dir = "/tmp/";

photon_effects::offset_red(
  input,
  output_dir,
  "logo_offset_red.png",
  25
).expect("Couldn't create offset_red image");