Glitchy: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 4: Line 4:
  ====GLITCH = GLITCH = GLITCH====
  ====GLITCH = GLITCH = GLITCH====
  ----------------------------------
  ----------------------------------
dEFINITION---><BR>
achievements and goals further on hello world!
'''History of glitches & Theory and Aestetics''' ---><BR>
This page is my working flow in the prototyping sessions.  
'''Current readings''': The Glitch Moment(um) by ROSA MENKMAN Institute of Network cultures<br>
Even though we were mostly busy with Mr Stock workshops( Arduino & Robotics)
Glitch Aestetics by Iman Moradi <br>
*I had hands on pipe line and first bash script for glitching stills and eventually a video(using FFFmpeg for converting
gLITCH is the unexpected result of a malfunction<br>
(thanks to Michael and Timo)
key words: destruction, distortion of a signal, error, corrupting digital code/data,"bug"
the magic line:  
[http://en.wikipedia.org/wiki/Glitch_art Glitch art]<br>
'''+ pROJECTS & ArTISTS in the field:'''<br>
[http://www.hellocatfood.com/ HelloCatFood] is glitch user, practitioner - projects worthy to mention "Interpretations of Reality" & "Glitch Webcam"<br>
[http://rosa-menkman.blogspot.nl/ Rosa Menkman] s theorist and researcher in glitch art.<br>
Facebook artist [http://glitchr.tumblr.com/ Glitchr] who is glitchering fb layout<br>
[http://extrafile.org/ Extra File] is open source software encourage you to create own image file format<br>
My first Glitch throught command line:<br>
sed 's/H/l/g' [fileName.jpg]<br>
works only with jpgs<br>
<gallery widths=120px heights=60px perrow=5 caption="glitchiii">
File:Horse.glitch.jpg‎
File:M_m.jpg
File:Image-001158.jpeg
File:Image-000098.jpeg
File:Image-000127.jpeg
<caption ="pde library">
File:Br_1.png‎
File:Br 5.png
File:Br 2.png
File:Br 4.png
File:glll.png
File:av_1.gif
File:av_2.gif
</gallery>
code_processing for face_ glitching (glitching src:[http://facegen.com/ faceGen tool for creating hyper Realistic self]


*I managed to fill some gaps...in HTML 5/ CSS
* some word press and CMS systems ( possible alternatives of html as "hot glue" ) --> Timo
* some brief introduction in processing & kinect with Evo (creating our own interactive brush)
* some processing first steps still: simple code for glitching pixels and spinning numbers
saveFrame();


  float heightGlitch;  
  float heightGlitch;  
Line 65: Line 48:
   }  
   }  
   img.updatePixels();
   img.updatePixels();
}
some for spinning numbers:
int strokeWeight =1;
int y = 10;
int x = 5;
int counter = 10;
int blinkingSpeed =10;
//speed of time to erase
PFont fontA;
float r = 0 ;
PImage img;
int  imageWidth = 600;
int counterFrameSaved = 0;
boolean n=false;
void setup() {
  smooth();
  frameRate(20);
  img = loadImage("men_wt.png");
  size(img.width, img.height);
  fontA = loadFont("Sansation-12.vlw");
  textFont(fontA, 12);
}
void draw() {
  image(img, 0, 0);
  img.loadPixels();
  if (counter==blinkingSpeed) {
    stroke(random(20, height), random(255), random(255));
    strokeWeight(strokeWeight);
    fill(255);
    //the first for is only to draw more numbers on the screen
    for ( int i=0; i<200;i++) {   
      //the second for draw 30 random numbers, with x with a separation
      //of 15 pixels at 30 random y positions
      for ( int z = 0; x+(z*4.5)<img.width/2;z++) {
        r = random( 0, 9);     
        text((int)r, x+(z*9.5), i*10.5);
        //strokeWeight++;
      }
    }   
    y=y+10;
    counter = 0;
  }
  if (y==height) {
    y=0;
    //  x=(int)random(0, width);
    background(0);
  }
  counter = counter+10;
  if (counter==1000) {
    fill(0);
    img.updatePixels();
  }
    counterFrameSaved++;
  if (n==true) {
    if (counterFrameSaved < 200) {
      println(counterFrameSaved);
      saveFrame("folder/file-######.png");
    }
    else {
      exit();
    }
  }
 
}
* nevertheless some javaScript popUp script  ( thanks to stack overflow )
function openNewWindow(url) {
  //var parametersBegin = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400,left=400,top=400 ";
    var parametersBegin = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=";
    numWindows += 1;
    var title = "Window #"+numWindows;
    var width = Math.floor((Math.random()*600)+10);
    var height = Math.floor((Math.random()*600)+20);
    var RandomLeft = Math.floor((Math.random()*200)+1);
    var RandomTop = Math.floor((Math.random()*200)+1);
   
//make a variable to set the str + the random sizes of the windows
    var parameters = parametersBegin+ parseFloat(width)+",height=" + parseFloat(height)+",left=" + parseFloat(RandomLeft)+ ",top = "+parseFloat(RandomTop) ;
    windows[numWindows] = window.open(url, title, parameters);
}
//for increases or decreases the numbers of pop up windows
for(i =0; i<30;i++){
//set the url
//openNewWindow("http://pzwart3.wdka.hro.nl/wiki/Main_Page.com");
}
}

Revision as of 00:19, 2 April 2013

5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif 5.gif

====GLITCH = GLITCH = GLITCH====
----------------------------------

achievements and goals further on hello world! This page is my working flow in the prototyping sessions. Even though we were mostly busy with Mr Stock workshops( Arduino & Robotics)

  • I had hands on pipe line and first bash script for glitching stills and eventually a video(using FFFmpeg for converting

(thanks to Michael and Timo) the magic line:



  • I managed to fill some gaps...in HTML 5/ CSS
  • some word press and CMS systems ( possible alternatives of html as "hot glue" ) --> Timo
  • some brief introduction in processing & kinect with Evo (creating our own interactive brush)
  • some processing first steps still: simple code for glitching pixels and spinning numbers

saveFrame();

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();

}

some for spinning numbers:

int strokeWeight =1; int y = 10; int x = 5; int counter = 10; int blinkingSpeed =10; //speed of time to erase PFont fontA; float r = 0 ; PImage img; int imageWidth = 600; int counterFrameSaved = 0; boolean n=false; void setup() {

 smooth();
 frameRate(20);
 img = loadImage("men_wt.png");
 size(img.width, img.height);
 fontA = loadFont("Sansation-12.vlw");
 textFont(fontA, 12);

}

void draw() {

 image(img, 0, 0);
 img.loadPixels();
 if (counter==blinkingSpeed) {
   stroke(random(20, height), random(255), random(255));
   strokeWeight(strokeWeight);
   fill(255);
   //the first for is only to draw more numbers on the screen 
   for ( int i=0; i<200;i++) {    
     //the second for draw 30 random numbers, with x with a separation 
     //of 15 pixels at 30 random y positions
     for ( int z = 0; x+(z*4.5)<img.width/2;z++) {
       r = random( 0, 9);      
       text((int)r, x+(z*9.5), i*10.5);
       //strokeWeight++;
     }
   }    
   y=y+10;
   counter = 0;
 }
 if (y==height) {
   y=0;
   //  x=(int)random(0, width);
   background(0);
 }
 counter = counter+10;
 if (counter==1000) {
   fill(0);
   img.updatePixels();
 }
    counterFrameSaved++;
 if (n==true) {
   if (counterFrameSaved < 200) {
     println(counterFrameSaved);
     saveFrame("folder/file-######.png");
   }
   else {
     exit();
   }
 }
 

}

  • nevertheless some javaScript popUp script ( thanks to stack overflow )

function openNewWindow(url) {

  //var parametersBegin = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400,left=400,top=400 ";
   var parametersBegin = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=";
   numWindows += 1;
   var title = "Window #"+numWindows;
   var width = Math.floor((Math.random()*600)+10); 
   var height = Math.floor((Math.random()*600)+20); 
   var RandomLeft = Math.floor((Math.random()*200)+1); 
   var RandomTop = Math.floor((Math.random()*200)+1); 
   

//make a variable to set the str + the random sizes of the windows

   var parameters = parametersBegin+ parseFloat(width)+",height=" + parseFloat(height)+",left=" + parseFloat(RandomLeft)+ ",top = "+parseFloat(RandomTop) ;
   windows[numWindows] = window.open(url, title, parameters);

} //for increases or decreases the numbers of pop up windows for(i =0; i<30;i++){ //set the url //openNewWindow("http://pzwart3.wdka.hro.nl/wiki/Main_Page.com"); }