endShape() / Reference

  • size(400, 400);
    noFill();
    
    beginShape();
    vertex(80, 80);
    vertex(180, 80);
    vertex(180, 320);
    endShape(CLOSE);
    
    beginShape();
    vertex(200, 80);
    vertex(300, 80);
    vertex(300, 320);
    endShape();
    Image output for example 1