function setup() {
createCanvas(600, 600);
noLoop();
}
function draw() {
noStroke();
fill(0, 0, 255);
rect(0, 0, 800, 600);
fill(0, 255, 0);
rect(0, 400, 800, 200);
fill(255, 255, 0);
rect(200, 250, 200, 200);
fill(255, 0, 0);
triangle(150, 250, 300, 100, 450, 250);
}