Glitchy: Difference between revisions
No edit summary |
No edit summary |
||
Line 49: | Line 49: | ||
</gallery> | </gallery> | ||
code_processing: | |||
float heightGlitch; | |||
float widthGlitch; | |||
PImage img; | |||
int imageWidth = 600; | |||
void setup() { | |||
img = loadImage("FileName.jpg"); | |||
size(img.width, img.height); | |||
heightGlitch = 100; | |||
widthGlitch = img.width/10.0f; | |||
frameRate(30); | |||
} | |||
void draw() { | |||
filter(BLUR, 0.05); | |||
image(img, 0, 0); | |||
img.loadPixels(); | |||
float randY = random(0,img.height-heightGlitch); | |||
float randYend = randY+heightGlitch; | |||
for (int j=int(randY); j<int(randYend); j++) { | |||
float randInitialX = random(0,img.width-widthGlitch); | |||
for (int i = int(randInitialX);i<int(randInitialX+widthGlitch);i++) { | |||
img.pixels[img.width*j+i+1] = img.pixels[img.width*j+i]; | |||
//apply color: img.pixels[img.width*j+i+1] = color(255, 0, 0, 50); | |||
} | |||
} | |||
img.updatePixels(); | |||
} |
Revision as of 23:06, 16 March 2013
++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++
________//|| The ||\\________ ====GLITCH = GLITCH = GLITCH==== ----------------------------------
dEFINITION--->
History of glitches & Theory and Aestetics --->
Current readings: The Glitch Moment(um) by ROSA MENKMAN Institute of Network cultures
Glitch Aestetics by Iman Moradi
gLITCH is the unexpected result of a malfunction
key words: destruction, distortion of a signal, error, corrupting digital code/data,"bug"
Glitch art
+ pROJECTS & ArTISTS in the field:
HelloCatFood is glitch user, practitioner - projects worthy to mention "Interpretations of Reality" & "Glitch Webcam"
Rosa Menkman s theorist and researcher in glitch art.
Facebook artist Glitchr who is glitchering fb layout
Extra File is open source software encourage you to create own image file format
My first Glitch throught command line:
sed 's/H/l/g' [fileName.jpg]
works only with jpgs
code_processing:
float heightGlitch; float widthGlitch; PImage img; int imageWidth = 600;
void setup() {
img = loadImage("FileName.jpg"); size(img.width, img.height); heightGlitch = 100; widthGlitch = img.width/10.0f; frameRate(30);
}
void draw() {
filter(BLUR, 0.05); image(img, 0, 0); img.loadPixels();
float randY = random(0,img.height-heightGlitch); float randYend = randY+heightGlitch; for (int j=int(randY); j<int(randYend); j++) { float randInitialX = random(0,img.width-widthGlitch); for (int i = int(randInitialX);i<int(randInitialX+widthGlitch);i++) { img.pixels[img.width*j+i+1] = img.pixels[img.width*j+i]; //apply color: img.pixels[img.width*j+i+1] = color(255, 0, 0, 50); } } img.updatePixels();
}