added webcam-mode and autoplay-mode
This commit is contained in:
25
effects.pde
25
effects.pde
@@ -3107,7 +3107,7 @@ class LZ7 extends Shader {
|
||||
|
||||
buffer.beginDraw();
|
||||
|
||||
print("Preparing... ");
|
||||
//print("Preparing... ");
|
||||
|
||||
img.loadPixels();
|
||||
int iter=0;
|
||||
@@ -3124,28 +3124,27 @@ class LZ7 extends Shader {
|
||||
}
|
||||
iter++;
|
||||
}
|
||||
println("done");
|
||||
//println("done");
|
||||
|
||||
print("Glitching channel 1... ");
|
||||
//print("Glitching channel 1... ");
|
||||
comp1.doCompress(cr);
|
||||
comp1.glitch( (int)number_of_glitches[0][0], number_of_glitches[0][1] );
|
||||
comp1.doDecompress(cr);
|
||||
println("done");
|
||||
//println("done");
|
||||
|
||||
print("Glitching channel 2... ");
|
||||
//print("Glitching channel 2... ");
|
||||
comp2.doCompress(cg);
|
||||
comp2.glitch( (int)number_of_glitches[1][0], number_of_glitches[1][1] );
|
||||
comp2.doDecompress(cg);
|
||||
println("done");
|
||||
//println("done");
|
||||
|
||||
print("Glitching channel 3... ");
|
||||
//print("Glitching channel 3... ");
|
||||
comp3.doCompress(cb);
|
||||
comp3.glitch( (int)number_of_glitches[2][0], number_of_glitches[2][1] );
|
||||
comp3.doDecompress(cb);
|
||||
println("done");
|
||||
//println("done");
|
||||
for (int i = 0; i < 3; i++) {
|
||||
println("Channel "+(i+1)+" = ("+compressor_attributes[i][0]+","+compressor_attributes[i][1]+")"
|
||||
+ ", glitches = ("+number_of_glitches[i][0]+","+number_of_glitches[i][1]+")");
|
||||
//println("Channel "+(i+1)+" = ("+compressor_attributes[i][0]+","+compressor_attributes[i][1]+")" + ", glitches = ("+number_of_glitches[i][0]+","+number_of_glitches[i][1]+")");
|
||||
}
|
||||
|
||||
buffer.loadPixels();
|
||||
@@ -3576,8 +3575,8 @@ class SLICER extends Shader {
|
||||
stat_type = (int)params.get(11).value;
|
||||
fixed_rotation = boolean((int)params.get(12).value);
|
||||
|
||||
println("");
|
||||
println("Processing...");
|
||||
//println("");
|
||||
//println("Processing...");
|
||||
edges.clear();
|
||||
makeEdges();
|
||||
calculateSegmentation();
|
||||
@@ -3811,7 +3810,7 @@ class SLICER extends Shader {
|
||||
}
|
||||
}
|
||||
|
||||
println("Segments: " +num);
|
||||
//println("Segments: " +num);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user