xxxxxxxxxx
94
function setup() {
createCanvas(600, 600);
}
function draw() {
background(color("orange"));
noStroke();
fill(255);
beginShape();
vertex(10,10);
vertex(10,100);
vertex(100,100);
vertex(100,10);
vertex(10,10);
endShape();
beginShape();
vertex(110,10);
vertex(110,100);
vertex(250,100);
vertex(250,10);
vertex(110,10);
endShape();
push();
translate(150,0);
beginShape();
vertex(130,10);
vertex(110,100);
vertex(270,100);
vertex(250,10);
vertex(110,10);
endShape();
pop();
push();
translate(320,0);
beginShape();
vertex(130,10);
vertex(110,100);
vertex(230,100);
vertex(250,10);
vertex(110,10);
endShape();
pop();
push();
translate(-100,490);
beginShape();
vertex(130,10);
vertex(110,100);
vertex(210,100);
vertex(230,10);
vertex(110,10);
endShape();
pop();
push();
translate(10,490);
beginShape();
vertex(130,10);
vertex(140,90);
vertex(230,100);
vertex(270,10);
vertex(110,10);
endShape();
pop();
push();
translate(260,490);
scale(3.4);
beginShape();
vertex(0,30);
vertex(15,0);
vertex(30,30);
vertex(15,15);
vertex(0,30);
endShape();
pop();
beginShape();
vertex(10,110);
vertex(550,110);
vertex(mouseX,mouseY);
vertex(10,480);
endShape();
}