Thursday, July 23, 2009
Origami
int randX, randY;
int randX2, randY2;
void setup (){
background(0);
size (800, 400);
frameRate(5);
}
void draw() {
randX = (int) random(200,600);
randY = (int) random(100,300);
randX2 = (int) random(200,600);
randY2 = (int) random(100,300);
noStroke();
fill(255,20);
rect(0,0,width, height);
smooth();
stroke(0);
strokeWeight(0.5);
//fill(255, 120);
quad(mouseX, mouseY, pmouseX, pmouseY, randX, randY, randX2, randY2);
//line(mouseX, mouseY, pmouseX, pmouseY);
//line(mouseX, mouseY , randX, randY);
//line(randX, randY, pmouseX, pmouseY);
}
int randX2, randY2;
void setup (){
background(0);
size (800, 400);
frameRate(5);
}
void draw() {
randX = (int) random(200,600);
randY = (int) random(100,300);
randX2 = (int) random(200,600);
randY2 = (int) random(100,300);
noStroke();
fill(255,20);
rect(0,0,width, height);
smooth();
stroke(0);
strokeWeight(0.5);
//fill(255, 120);
quad(mouseX, mouseY, pmouseX, pmouseY, randX, randY, randX2, randY2);
//line(mouseX, mouseY, pmouseX, pmouseY);
//line(mouseX, mouseY , randX, randY);
//line(randX, randY, pmouseX, pmouseY);
}
comments
loading...
Add a comment: