Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions BasicImages/BasicImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
<<<<<<< HEAD
float scalefactor = .1;
PImage Goku;


void setup () {
size(800, 600);
Goku = loadImage("Goku.JPG");


}

void draw () {
background(255);
image(Goku, mouseX, mouseY, Goku.width*scalefactor, Goku.height*scalefactor);

=======
PImage Goku;
float scalefactor = 0.1;

void setup () {
size(600,600);
Goku = loadImage("Goku.JPG");


}


void draw () {
image(Goku, mouseX, mouseY, Goku.width*scalefactor, Goku.height*scalefactor);



>>>>>>> refs/remotes/origin/Filtering-Images
}
Binary file added BasicImages/data/Goku.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions FilteringImages/FilteringImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
<<<<<<< HEAD
float scalefactor = .1;
PImage Goku;


void setup () {
size(800, 600);
Goku = loadImage("Goku.JPG");


}

void draw () {
image(Goku, mouseX, mouseY, Goku.width*scalefactor, Goku.height*scalefactor);
filter(INVERT);
=======
PImage Goku;
float scalefactor = 0.1;

void setup () {
size(600,600);
Goku = loadImage("Goku.JPG");


}


void draw () {
image(Goku, mouseX, mouseY, Goku.width*scalefactor, Goku.height*scalefactor);
filter(INVERT);


>>>>>>> refs/remotes/origin/Filtering-Images
}
Binary file added FilteringImages/data/Goku.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions IndependentImagePractice/IndependentImagePractice.pde
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
//declare image variables

PImage gsw;
PImage light;

void setup () {
size(800, 800); //set canvas

gsw = loadImage("gsw.jpg");
light = loadImage("2lightning.jpg");
gsw.blend(light, 0, 0, 800, 800, 0, 0, 800, 800, SUBTRACT); //blend the two images together

gsw = loadImage("gsw.jpg"); //load the Warriors logo
light = loadImage("2lightning.jpg"); //load the lightning image
gsw.blend(light, 0, 0, 800, 800, 0, 0, 800, 800, SUBTRACT); //blend the two pics together

}



void draw () {
image(gsw, 0, 0);

tint(50, 235, 255); //give the masked images a blue tint
if (mousePressed) { //while mouse is pressed, randomly change tint

tint(random(255), random(255), random(255));
}
}
Binary file added IndependentImagePractice/data/2lightning.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added IndependentImagePractice/data/gsw.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added IndependentImagePractice/data/lightning.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions MaskingImages/MaskingImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
PImage gokukamehameha;
PImage gohancellkamehameha;

void setup () {
size(600,600);
gokukamehameha = loadImage("gokukamehameha.png");
gohancellkamehameha = loadImage("gohancellkamehameha.gif");
gohancellkamehameha.mask(gokukamehameha);
gokukamehameha.mask(gohancellkamehameha);
}

void draw () {
background (map(mouseY, 0, height, 0, 255));
image(gokukamehameha, 0, 0);
image(gohancellkamehameha, 0, 0);

}
Binary file added MaskingImages/data/SSJgodGOKU.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MaskingImages/data/SSJgodVEGETA.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MaskingImages/data/gohan cell kamehameha.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MaskingImages/data/gohancellkamehameha.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MaskingImages/data/goku kamehameha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MaskingImages/data/gokukamehameha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.