xxxxxxxxxx
19
function setup() {
createCanvas(400, 400);
}
function draw() {
background(15,70,30);
beginShape();
fill(0,150,240)
vertex(120,90);
vertex(200,50);
vertex(275,90);
vertex(200,250);
//making a custom shape much like a triangle works off of points unlike its rectangular and ellipse counterparts. you list the points and then the shape builds itself. each is a x,y coordinate. so cool!
endShape(CLOSE);
}