xxxxxxxxxx
22
let x,y;
let offset=0;
function setup() {
createCanvas(400, 400);
strokeWeight(25)
//background(255,50)
}
function draw() {
background(255)
//background(255,50)// 给背景增加透明度可以增加fading out的效果
// x=random(0,width)
// y=random(0,height)
x=noise(offset)*width// noise range 0-1, noise doesnt has a limit number,noise is fixed, only appear once upon refreshing
y=200
offset=offset+0.01// smaller the offset is, the more gradual gonna be;
point(x,y)
}