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
31 changes: 31 additions & 0 deletions BasicImages/BasicImages.pde
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
PImage FlashG; //declare variables
float scaleFactor = .1;

void setup() {
size(1600,800); //set canvas size
FlashG = loadImage("Flash.png"); //set FLashG variable to a picture of Flsah Gordon, saved from desktop
noCursor();
noStroke();

}

void draw() {
//repeat this 50 times per frame with a for loop
for (int i = 0; i < 50; i++) {
int x = int(random(width));
int y = int(random(height));
fill(get(x,y));
ellipse(x,y, 2, 2);
background(255,255,255); //make background black
tint(200,0,0);
image(FlashG, mouseX, mouseY,FlashG.width*2,FlashG.height*2); //place image location according to where the mouse is. width and height factors
}
}

void keyPressed() {
if(keyCode == UP) {
scaleFactor += .1;
}
if(keyCode == DOWN) {
scaleFactor += .1;
}
}
Binary file added BasicImages/data/Flash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions IndependentImagePractice/IndependentImagePractice.pde
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
PImage Stormrage; //declare variables
PImage Fire;

void setup() {
size(800, 600); //set canvas size
Stormrage = loadImage("Stormrage.jpg"); //set FLashG variable to a picture of Flsah Gordon, saved from desktop
Fire = loadImage("Fire.jpg");
Stormrage.mask(Fire); //Masking stormrage into fire
Fire.mask(Stormrage); //Masking fire into stormrage
}

void draw() {
background(map(mouseY, 0, height, 0, 250)); //set background
image(Stormrage, 0, 0); //Insert Stormrage Image
image(Fire, 0, 0); //Insert Fire Image
}

void keyPressed() {
tint(random(255),random(255),random(255)); //when key pressed, picture changes tint color randomly
}
Binary file added IndependentImagePractice/data/Fire.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/From Eden.mp3
Binary file not shown.
Binary file added IndependentImagePractice/data/Lite.jpeg
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/Stormrage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.