Wednesday, April 04, 2012
Perspective_trick_2
int a = 0;
void setup() {
size(500,500);
background(200,200,200);
}
void draw() {stroke(random(0,255),random(0,255),random(0,255));
line(0,0,275,a);
line(500,500,a-100,225);
line(0,500,a,225);
line(500,0,225,a);
stroke(0,0,0);
a = random(200,375);
//putting in invisible triangles to tidy it up
fill(200,200,200);
stroke(200,200,200);
triangle(0,0,0,500,200,250);
triangle(500,0,500,500,300,250); triangle(0,500,500,500,250,300);
}
void setup() {
size(500,500);
background(200,200,200);
}
void draw() {stroke(random(0,255),random(0,255),random(0,255));
line(0,0,275,a);
line(500,500,a-100,225);
line(0,500,a,225);
line(500,0,225,a);
stroke(0,0,0);
a = random(200,375);
//putting in invisible triangles to tidy it up
fill(200,200,200);
stroke(200,200,200);
triangle(0,0,0,500,200,250);
triangle(500,0,500,500,300,250); triangle(0,500,500,500,250,300);
}
comments
loading...
Add a comment: