aboutsummaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dev/a1_textrain/a1_textrain.pde15
1 files changed, 2 insertions, 13 deletions
diff --git a/dev/a1_textrain/a1_textrain.pde b/dev/a1_textrain/a1_textrain.pde
index f1b7456..2db8c36 100644
--- a/dev/a1_textrain/a1_textrain.pde
+++ b/dev/a1_textrain/a1_textrain.pde
@@ -86,7 +86,7 @@ void draw() {
// DRAW THE INPUTIMAGE ACROSS THE ENTIRE SCREEN
// Note, this is like clearing the screen with an image. It will cover up anything drawn before this point.
// So, draw your text rain after this!
- inputImage.filter(GRAY);
+ inputImage.filter(GRAY);
set(0, 0, inputImage);
loadPixels();
//Debug toggle
@@ -98,18 +98,7 @@ void draw() {
pixels[k]=color(255);
}
}
- }
-
- for (int i=0;i<inputImage.width-1;i++) {
- for (int j=0;j<inputImage.height-1;j++) {
- color swap;
- swap=pixels[i+j*inputImage.width];
- println(red(pixels[i+j*inputImage.width]));
- println(red(pixels[(inputImage.width-i)+j*inputImage.width]));
- pixels[i+j*inputImage.width]=pixels[(inputImage.width-i)+j*inputImage.width]; //<>//
- pixels[(inputImage.width-i)+j*inputImage.width]=swap;
- }
- }
+ } //<>//
updatePixels();
int x=0;