xxxxxxxxxx
26
function setup() {
createCanvas(400, 400, WEBGL);
noLoop();
}
function draw() {
background(220);
beginShape();
fill(255);
vertex(-100,0);
vertex(-100,-100);
vertex(100, -100);
vertex(100, 0);
endShape();
beginShape();
fill(250,0,0);
vertex(100, 0);
vertex(100,100);
vertex(0, 90);
vertex(-100, 100);
vertex(-100,0);
endShape();
}