Digital Landscape

PImage man;
int value = 0;
float r;
float g;
float b;
float a;
void setup() {
size(600, 600);
background(0);
man = loadImage (“forest copy.jpg”);
image(man, 0, 140);
}

void draw() {

r = random(255);
g = random(255);
b = random(255);
a = random(255);
}
void mouseDragged() {
noStroke();
fill(value);
ellipse(mouseX, mouseY, 20, 20);
noStroke();
fill(r, g, b, a);
ellipse(mouseX, mouseY, 20, 20);
}
void keyPressed() {
if ( value == 0) {
value = 255;
} else {
value = 0;
}
}

Screen Shot 2016-10-06 at 1.52.00 PM.pngscreen-shot-2016-10-05-at-10-23-26-pm-copy

This entry was posted in Time Based and tagged , , , . Bookmark the permalink.

Leave a comment