xxxxxxxxxx
18
function setup() {
createCanvas(500, 500);
background(0);
}
function draw() {
// background(240);
fill(40,250,225,70);
// noFill();
stroke(100,20,255,120);
strokeWeight(2);
let cp1 = 120;
let cp2 = 400;
for (let i = 0; i < 100; i += 5) {
bezier(cp1 + i*sin(frameCount*0.021), cp2 + i*cos(frameCount*0.021), 100 * sin(frameCount*0.05), 10, 480, 480, 400+i*sin(frameCount*0.02), 100+i*cos(frameCount*0.02));
}
}