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
14 changes: 14 additions & 0 deletions BasicImages/BasicImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
PImage lily;
float scaleFactor = random(.3,.98);



void setup() {
size(800,600);
lily = loadImage("water lily.jpg");
}

void draw(){

image(lily,mouseX,mouseY,.5*lily.width,.5*lily.height);
image(lily,random(width),random(height),scaleFactor*lily.width,scaleFactor*lily.height);
}
Binary file added BasicImages/data/water lily.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 lily;

void setup() {
size(800,800);
lily = loadImage("water lily.jpg");
image(lily,0,0);
filter(GRAY);

}

void draw() {




}
Binary file added BlendingImages/data/water lily.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions IndependentImagePractice/IndependentImagePractice.pde
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@


PImage dog, galaxy,heart; //declare variables


void setup() {
size(400,267); //set canvas size
dog = loadImage("dog.jpg"); //assign variables
galaxy = loadImage("galaxy.jpg");
heart = loadImage("heart.png");
dog.mask(heart); //heart covers dog


}

void draw(){
background(0); //set background color to black
image(dog,0,0); //put dog image at 0,0

blend(galaxy,0,0,400,267,0,0,400,267,MULTIPLY); //multiply dog and galaxy colors
filter(ERODE); //blurs in details

}
Binary file added IndependentImagePractice/data/dog.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/galaxy.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/gate.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.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/husky.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/husky2.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/ocean.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/star bw.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/star.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions MaskingImages/MaskingImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
//PImage main;
//PImage mask;
PImage pug;
PImage heart;


void setup() {
size(800,800);
// main = loadImage("water lily.jpg"); //adds image to data
// image(main,0,0);
// mask = loadImage("husky.jpg"); //adds image to data
// image(mask,0,0);
imageMode(CENTER);
pug = loadImage("pug.jpg");
image(pug,width/2,height/2);
heart = loadImage("heart.jpg");
image(heart,width/2,height/2);

//main.mask(mask); //puts two images together

pug.mask(heart);
}

void draw() {
background(0);
//image(main,0,0); //puts combined image

image(pug,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/husky.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/pug.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/water lily.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.