Glitch

Package : com.danehansen.display
Class : public class Glitch
Inheritance : Glitch > Object
Subclasses : AutoGlitch

Instances of this class will take the image or element (with background image), and in real time glitch out the bytes of the image. No matter if the image is .jpg, .png, or .gif, it will by glitched like a .jpg becuase that is what looks the coolest. This effect will not work locally unless you set up a local server. Otherwise the canvas thinks it’s all tainted and craps out. Also, if you pull in an image from a different server, it will taint the canvas unless you make it think it’s coming from it’s own server, via a fpassthru or readfile (included) or some other serverside trickery.

Public Properties

Public Methods

AutoGlitch

Package : com.danehansen.display
Class : public class AutoGlitch
Inheritance : AutoGlitch > Glitch > Object

Instances of this class will automatically glitch out a random amount for random amounts of times

Public Properties

Public Methods

EXAMPLE 1: BASIC GLITCH

var glitch=new Glitch(document.getElementById("basicGlitch"));
glitch.fucked();

EXAMPLE 2: AUTO GLITCH

var autoGlitch=new Glitch(document.getElementById("basicGlitch"));
autoGlitch.cleanTime();
autoGlitch.glitchTime();
autoGlitch.fuckLimit();