xxxxxxxxxx
30
let shapes = [
[100,200],
[200,300],
[300,200],
[200,100],
[100,200],
[300,200],
];
function setup() {
createCanvas(400, 400);
}
function draw(){
background(15);
beginShape(TRIANGLES);
for(let i = 0; i < shapes.length; i++){
stroke(220);
strokeWeight(3);
noFill();
vertex(shapes[i][0], shapes[i][1]);
}
endShape();
}