Interactive Authoring- Digital Landscape Final Re-done

splash-paint-final-2-0

This landscape is a burst of an idea. An explosion of emotion, of creativity. The black side represents negative thoughts, you pushing yourself down and criticizing all your work. The colors at the corners can be seen as either leaving or coming together, ideas moving in to help your thought grow or thoughts leaving to help grow as their own ideas.

Code:

PImage img;
int blue = 0;
int red = 0;
int green = 0;
int sizeI=1;
int alpha=100;
PFont font;
void setup() {
img = loadImage(“Splash_Paint.png”);
size (1080, 720);
background (255);
}

void draw() {
noStroke();
fill(255);
ellipse (1040, 710, 100, 100);
ellipse (500, 710, 50, 50);
fill (0);
text (sizeI, 1040, 710);
text (alpha, 500, 710);
fill (red, green, blue);
ellipse (40, 700, 100, 100);
ellipseMode (CENTER);
if (mousePressed) {
imageMode (CENTER);
tint(red, green, blue, alpha);
image(img, mouseX, mouseY, (width/5)+sizeI, (height/5)+sizeI );
}
if (keyPressed) {

if (key == ‘c’) {
background (255);
}
if ( key ==’B’) {
blue=blue+5;
} else if ( key == ‘R’ ) {
red=red+5;
} else if ( key == ‘G’) {
green=green+5;
} else if (key == ‘g’) {
green=green-5;
} else if (key == ‘r’) {
red=red-5;
} else if (key == ‘b’) {
blue=blue-5;
} else if (key == ‘C’) {
blue=255;
green=255;
red=255;
} else if (key == ‘V’) {
blue=0;
green=0;
red=0;
}
if (key == ‘a’) {
alpha=alpha+1;
}
if (key == ‘s’) {
alpha=alpha-1;
}
}
}

void keyPressed() {
if (key == CODED) {
if (keyCode == DOWN) {
sizeI=sizeI-1;
}
if (keyCode == UP) {
sizeI=sizeI+1;
}
}
}

Advertisements
This entry was posted in Non-Timebased and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s