Editing P4P2010-05-13
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 9: | Line 9: | ||
int pballx = 0; | int pballx = 0; | ||
int pbally = 200; | int pbally = 200; | ||
void setup() { | void setup() { | ||
// size of our drawing window | // size of our drawing window | ||
Line 17: | Line 17: | ||
background(128); | background(128); | ||
} | } | ||
void draw() { | void draw() { | ||
Line 24: | Line 24: | ||
fill(128); | fill(128); | ||
drawball(pballx,pbally); | drawball(pballx,pbally); | ||
// update the ball location | // update the ball location | ||
ballx = ballx + 2; | ballx = ballx + 2; | ||
bally = bally + 1; | bally = bally + 1; | ||
// and draw it | // and draw it | ||
stroke(255); | stroke(255); |