xxxxxxxxxx
15
let t = 0;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
let n = noise(t);
let x = map (n,0,1,0,width) //width is a built in variable
ellipse( x, 180, 16, 16) // the reason why the circle is not moving up is that the y is static
fill(44,55)
// print(n)
t+=0.001
}