xxxxxxxxxx
19
let cp1 = 50;
function setup() {
createCanvas(500, 500);
}
function draw() {
background(220);
noFill();
stroke("blue");
strokeWeight(20);
beginShape();
vertex(30, 20);
bezierVertex(80, 0, 90, 75, cp1*sin(frameCount*0.01), 75);
bezierVertex(0, 77, 10, 150, 200, 300);
bezierVertex(100, 240, (150+cp1)*sin(frameCount*0.03), 100, 400, 450);
endShape();
}