xxxxxxxxxx
35
function setup() {
createCanvas(800, 600);
}
function draw() {
background(220);
fc = frameCount*0.01;
for(let i=0; i<width; i++){
let x = i;
let y = 100;
point(x,y);
y = 200+sin(i*0.1+fc*10)*10;
point(x,y);
y = 300+random(-20,20);
point(x,y);
y = 400+noise(i*0.01+fc)*100;
point(x,y);
}
push();
strokeWeight(5);
let xx = map(noise(fc),0,1,0,width);
let yy = map(noise(fc+1000),0,1,0,height);
point(xx,yy);
pop();
}