Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 862 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 862 Bytes

Processing Image Glitch

Processing image glitch is a small library to add glitch to a PImage in Processing. The algorithm uses the singularity of jpeg compression which allows to display even an corrupted image.

Currently it is a very early alpha version. So the interface to the Glitcher class will change sooner or later!

Example

alt text

Usage

PImage img;
Glitcher glitcher;

void setup()
{
  size(640, 360);
  img = loadImage("images/hipster_velo.jpg");
  
  //create new Glitcher
  glitcher = new Glitcher();
}

void draw()
{
  //glitch image
  PImage wrackedImage = glitcher.glitchImage(glitcher.resizeImage(img));
  image(wrackedImage, 0, 0, width, height);
}

Author

Florian www.easyguet.ch # 2015