Alyssa Seosankar – Prof. Higgins – HW 3.2 Part 3 – Due 02/18/13

//Alyssa Seosankar – Prof. Higgins – HW 3.2 Part 3 – Due 02/18/13

int x = 100;
int speed = 1;
int ball = color(159, 0, 244);

void setup(){
//Setting window size
size(400, 500);
}

void draw(){
//Setting background color
background(255);
//Drawing the ball
fill(ball);
stroke(0);
strokeWeight(4);
ellipse(x, mouseY, 100, 100);
//Setting the speed & movement of ball
if(x > width){
speed = speed * -1;
}
else if(x 0);
ball = ball + 1;

}

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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