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
16 changes: 16 additions & 0 deletions BasicImages/BasicImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
PImage knicks;
PImage punkin;
float scaleFactor=.5;
void setup(){
size(800,600);
knicks= loadImage("New-York-Knicks-Logo.jpg");
background(0);
punkin= loadImage("MehtaPumpkinSpooky.jpg");


}

void draw(){
background(0);
tint(0,255,0,128);
image(knicks,mouseX,mouseY,200,200);
}
Binary file added BasicImages/data/MehtaPumpkinSpooky.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 BasicImages/data/New-York-Knicks-Logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion FilteringImages/FilteringImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@

PImage knicks;
PImage pumpkin;
float scaleFactor=.5;
void setup(){
size(800,600);
knicks=loadImage("New-York-Knicks-Logo.jpg");
pumpkin=loadImage("MehtaPumpkinSpooky.jpg");
}
void draw(){
background(0);
image(knicks,mouseX,mouseY,200,100);
filter(GRAY);
}

Binary file added FilteringImages/data/MehtaPumpkinSpooky.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 FilteringImages/data/New-York-Knicks-Logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion IndependentImagePractice/IndependentImagePractice.pde
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@

PImage jets, mask, nyc; //create PImages
void setup(){
size(600,600); //size of plot
jets=loadImage("Jets.jpg"); //load image "jets", which is the jets logo
nyc=loadImage("NYC.jpg"); //load image "nyc", which is the NY skyline
nyc.blend(jets,0,0,600,600,0,0,600,600,MULTIPLY); //blend the jets logo onto nyc
}
void draw(){
image(nyc,0,0); //draw image nyc
tint(mouseY*.425,0,0); //as you move mouse down, the image is tinted more red
}

Binary file added IndependentImagePractice/data/Earth.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/Jets.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/NYC.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/apple.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/heart.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/swirl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion MaskingImages/MaskingImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@

PImage mainImage;
PImage mask;
void setup(){
size(800,600); //size
mainImage=loadImage("raindrop.jpg");//mainimage which is a raindrop
mask=loadImage("taj_grayscale.jpg");//mask which is the taj mahal
mainImage.mask(mask);//use taj mahal to mask raindrops
}
void draw(){
background(0);//black background
image(mainImage,100,100);//draw raindrop
}
Binary file added MaskingImages/data/raindrop.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/taj_grayscale.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/tajmahal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.