diff options
author | Matt Strapp <matt@mattstrapp.net> | 2021-09-20 18:21:17 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2021-09-20 18:21:17 -0500 |
commit | a84bdd53a08ac5f8939d3708822b9e254705c412 (patch) | |
tree | 7a6e3684fbebaa179097216c1b7bb9275bbaf3db /dev/a1_textrain | |
parent | do ass1 (diff) | |
download | csci4611-submission-p1.1.tar csci4611-submission-p1.1.tar.gz csci4611-submission-p1.1.tar.bz2 csci4611-submission-p1.1.tar.lz csci4611-submission-p1.1.tar.xz csci4611-submission-p1.1.tar.zst csci4611-submission-p1.1.zip |
Save before committing kidssubmission-p1.1
Diffstat (limited to 'dev/a1_textrain')
-rw-r--r-- | dev/a1_textrain/a1_textrain.pde | 15 |
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;
|