Sketch displaying post glitch video output
in
Programming Questions
•
1 year ago
I've been using this code for a while and was wondering how easy it would be to get the data to display to screen as it is being effected by the corruption process that this code produces.
Many Thanks :)
void draw(){
byte[] data=loadBytes("glitch.avi");
for(int i=0;i<100;i++) // 100 changes
{
int loc=(int)random(128,data.length);//
data[loc]=(byte)random(255);
}
}
Many Thanks :)
1