Major Project 1: Tubular Innovation (Digital Landscape)

screen-shot-2016-09-27-at-2-33-02-pm

 

 

 

 

 

 

Coding:

color RanColor;
int counter;
int interval = 50;
int imageCount;
int frame;
PImage photo;

void setup() {
size (500,500);
background (mouseX,0,mouseY);
RanColor = color(random(255), random(255), random(255));
photo= loadImage(“sora_sprite2.gif”);
}

void draw(){
if(mousePressed) {
background(0);
}
ellipse(mouseX,mouseY,20,20);
counter++;
if (counter >= interval){
counter = 15;
RanColor = color(random(255), random(255), random(255));
}

{
if(mouseX < 200) {
cursor(HAND);
} else {
cursor(photo);
}
}
}

void mousePressed() {
stroke(mouseX,mouseY,255,255);
fill(mouseX,mouseY,230,0);
rectMode(CENTER);
rect(mouseX,mouseY,56,56);
ellipse(mouseX,mouseY,100,150);
}

void mouseDragged() {
stroke(mouseX,mouseY,255,255);
fill(mouseX,mouseY,255,180);
rect(mouseX,mouseY,188,188);
ellipse(mouseX,mouseY,80,80);

}

void keyPressed() {
if (key == ‘c’) {
background(255);
}
if (key == ‘v’) {
background(RanColor);
}
if (key == ‘q’) {
ellipse(mouseX,mouseY,40,40);
}
if (key == ‘w’) {
fill(RanColor);
rect(mouseX,mouseY,55,55);
}
}

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