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
17 changes: 17 additions & 0 deletions BasicImages/BasicImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
PImage dog;



void setup() {
size(500, 333);
dog= loadImage("puppies.jpg");
imageMode(CENTER);
background(0);
}

void draw() {
filter(BLUR);
fill(dog.get(mouseX, mouseY));
image(dog, width/2, height/2);
ellipse(mouseX, mouseY, 20, 20);
filter(POSTERIZE,9);
}
Binary file added BasicImages/data/puppies.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: 15 additions & 0 deletions BlendingImages/BlendingImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
PImage zayn;
PImage smoke;

void setup() {
size(650, 433);
zayn = loadImage("zayn.jpg");
smoke= loadImage("smoke.jpg");
zayn.blend(smoke, 0, 0, zayn.width, zayn.height, 0, 0, smoke.width, smoke.height,SCREEN);


}

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

}
Binary file added BlendingImages/data/smoke.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 BlendingImages/data/zayn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions IndependentImagePractice/IndependentImagePractice.pde
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
PImage sea, fish, shark;

void setup(){
size(800,600);
imageMode(CENTER);
sea=loadImage("sea.png");
fish=loadImage("fish.jpg");
sea.mask(fish);
fish.blend(sea, width/2, height/2, fish.width, fish.height, 0, 0, sea.width, sea.height,DARKEST);
shark=loadImage("shark.png");

}

void draw(){
background(sea);
// image(sea,width/2,height/2);

image(shark,mouseX,mouseY);


}
Binary file added IndependentImagePractice/data/doggy.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/fish.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/sea.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 IndependentImagePractice/data/shark.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/shark.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 IndependentImagePractice/data/sky.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/zen.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: 13 additions & 0 deletions MaskingImages/MaskingImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
PImage sd, heart;

void setup() {
size(476, 286);
sd=loadImage("snoopdogg.jpg");
imageMode(CENTER);
heart=loadImage("heart.jpg");
sd.mask(heart);
}

void draw() {
background(255, 0, 0);
image(sd, width/2, height/2);
}
Binary file added MaskingImages/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 MaskingImages/data/snoopdogg.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/sunglasses.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.