xxxxxxxxxx
27
let points = [];
function setup() {
createCanvas(400, 400);
for(let i = 0; i < 10; i++){
let v = createVector(random(100,width-100), random(100,height-100));
points.push(v)
}
}
function draw() {
//background(220);
stroke(0,5);
noFill();
beginShape();
for(let i = 0; i < points.length; i++){
points[i].x = points[i].x + random()-0.5
points[i].y = points[i].y + random()-0.5
//circle(points[i].x, points[i].y, 10);
curveVertex(points[i].x, points[i].y);
}
endShape();
}