int[][] points = { { 13,43},{45,65},{67,87},{96,65},{65,94},{13,43} }; void setup(){ size(300,300); background(255); } void draw(){ fill(255,53); noStroke(); rect(0,0,width, height); translate(random(-100,300),random(200)); fill(44); beginShape(); for (int i = 0; i < points.length; i++){ vertex(points[i][0],points[i][1]); } endShape(); }