Wednesday, April 04, 2012
perspective_box_V1
//declaring variables
int a = 1;
int b = 1;
void setup() {
size (500,500);
//setting out of habit, incase i change
//it later
background(200,200,200);}
void draw() {
a = random(97,500);
b = random(300,1000);
stroke(random(0,255),random(0,255),random(0,255));
line(0,0,a,500);
line(500,0,100,b);
stroke(0,0,0);
fill(255,255,255);
rect(100,300,200,200);
stroke(200,200,200);
fill(200,200,200);
triangle(300,500,500,500,500,0);}
int a = 1;
int b = 1;
void setup() {
size (500,500);
//setting out of habit, incase i change
//it later
background(200,200,200);}
void draw() {
a = random(97,500);
b = random(300,1000);
stroke(random(0,255),random(0,255),random(0,255));
line(0,0,a,500);
line(500,0,100,b);
stroke(0,0,0);
fill(255,255,255);
rect(100,300,200,200);
stroke(200,200,200);
fill(200,200,200);
triangle(300,500,500,500,500,0);}
comments
loading...
Add a comment: