Alyssa Seosankar – Prof. Higgins – HW 4.2 Part 1

//Alyssa Seosankar – Prof. Higgins – HW 4.2 Part 1

int eyeoutline = 3;
int colorb = 0;
PImage myImage;

void setup(){
//Setting the window size
size(500, 400);
//Inserting image
myImage = loadImage(“window.jpg”);
}
void draw() {
//Background tint
if(mousePressed){
tint(255, 0, 0);
}
else {
image(myImage, 0, 0, 500, 400);
}
//Inserting image
image(myImage, 0, 0, 500, 400);
//Drawing left eye of creeper
smooth();
fill(colorb);
stroke(216, 191, 216);
strokeWeight(eyeoutline);
ellipse(210, 180, 40, 40);
line(190, 130, 230, 150);
noFill();
noStroke();
fill(255, colorb, colorb);
triangle(200, 170, 200, 190, 225, 180);
//Drawing right eye of creeper
fill(colorb);
stroke(216, 191, 216);
strokeWeight(eyeoutline);
ellipse(300, 180, 40, 40);
line(280, 150, 320, 130);
noFill();
noStroke();
fill(255, colorb, colorb);
triangle(290, 170, 290, 190, 315, 180);
}

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *