pub fn vertical_strips(photon_image: &mut PhotonImage, num_strips: u8)
Expand description

Vertical strips. Divide an image into a series of equal-width strips, for an artistic effect.

Arguments

  • img - A PhotonImage that contains a view into the image.
  • num_strips - The numbder of strips

Example

// For example, to draw vertical strips on a `PhotonImage`:
use photon_rs::effects::vertical_strips;
use photon_rs::native::open_image;

let mut img = open_image("img.jpg").expect("File should open");
vertical_strips(&mut img, 8u8);