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 rare1;
float multx;
float multy;

void setup () {
size(890,600);
imageMode(CENTER);
rare1 = loadImage("rare pepe 1.jpg");

multx = .1;
multy = .1;
}

void draw () {
multx += .01;
multy += .01;
image(rare1,width/2,height/2,rare1.width*multx,rare1.height*multy);
}
Binary file added BasicImages/data/rare pepe 1.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/rare pepe 2.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/rare pepe 3.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/dr spaceman.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/murca1.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/rare pepe 1.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/rare pepe 2.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/rare pepe 3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions FilteringImages/FilteringImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
PImage rare2;

void setup () {
size(262,192);
rare2 = loadImage("rare pepe 2.jpg");
}

void draw () {
imageMode(CENTER);
image(rare2,width/2,height/2);
filter(INVERT);
}
Binary file added FilteringImages/data/rare pepe 1.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/rare pepe 2.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/rare pepe 3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions IndependentImagePractice/IndependentImagePractice.pde
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
PImage space;
PImage em1;
PImage em2;
PImage em3;
PImage em4;
PImage em5;
float EM; //declare variables

void setup () {
size(800,600); //set size
imageMode(CENTER); //have the picture appear with respect to its center
space = loadImage("dr spaceman.jpg"); //load background
em1 = loadImage("em1.jpg");
em2 = loadImage("em2.jpg");
em3 = loadImage("em3.jpg");
em4 = loadImage("em4.jpg");
em5 = loadImage("em5.jpg"); //load all faces
image(space,width/2,height/2); //place space background
space.resize(800,600); //resize all of space
frameRate(500); //increase framerate
}

void draw () {
EM = round(random(5)); //define a variable as a random # between 1 and 5
//FI = round(random(5)); //define a variable as a random # between 1 and 5
em1.resize(25,25);
em2.resize(25,25);
em3.resize(25,25);
em4.resize(25,25);
em5.resize(25,25); //resize all faces

if (mousePressed == true); {
if (EM == 1) {
image(em1,mouseX,mouseY);
}
if (EM == 2) {
image(em2,mouseX,mouseY);
}
if (EM == 3) {
image(em3,mouseX,mouseY);
}
if (EM == 4) {
image(em4,mouseX,mouseY);
}
if (EM == 5) {
image(em5,mouseX,mouseY);
}
} //draw a random smiley face at your mouse cursor every frame

filter(BLUR,1); //aply blur filter to program
}
Binary file added IndependentImagePractice/data/dr spaceman.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/em1.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/em1.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/em2.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/em2.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/em3.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/em3.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/em4.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/em4.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/em5.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/em5.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/murca1.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/rare pepe 1.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/rare pepe 2.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/rare pepe 3.jpg
17 changes: 17 additions & 0 deletions MaskingImages/MaskingImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
PImage mainImage;
PImage mask;

void setup () {
size(960,600);
mainImage = loadImage("dr spaceman.jpg");
image(mainImage,0,0);
mainImage.resize(800,600);
mask = loadImage("murca1.jpg");
imageMode(CENTER);
mask.mask(mask);
image(mask,width/2,height/2);
mask.resize(400,300);
}

void draw () {

}
Binary file added MaskingImages/data/dr spaceman.jpg
Binary file added MaskingImages/data/murca1.jpg
Binary file added MaskingImages/data/rare pepe 1.jpg
Binary file added MaskingImages/data/rare pepe 2.jpg
Binary file added MaskingImages/data/rare pepe 3.jpg