Sunday, November 06, 2011
Fresh Mess
// just type here
// and click "save" when your done
float x,y;
color backgroundColour;
void setup() {
size(800,500);
x = 100;
y = 100;
backgroundColour = color(40,255,104);
frameRate(10);
}
void draw() {
background(backgroundColour);
fill(random(0,255),40,150, random(0, 255));
rect(x,y, 100,100);
x += random(0, 25);
y += 30;
if (x > width) {
x = 0;
}
if (y > height) {
y = 0;
}
}
// and click "save" when your done
float x,y;
color backgroundColour;
void setup() {
size(800,500);
x = 100;
y = 100;
backgroundColour = color(40,255,104);
frameRate(10);
}
void draw() {
background(backgroundColour);
fill(random(0,255),40,150, random(0, 255));
rect(x,y, 100,100);
x += random(0, 25);
y += 30;
if (x > width) {
x = 0;
}
if (y > height) {
y = 0;
}
}
comments
loading...
Add a comment: