xxxxxxxxxx
20
let b;
let scl = 1;
let offset = 0;
let inc = 0.01;
function setup() {
createCanvas(400, 400);
b = new Ball(width/2, height/2);
}
function draw() {
// background(220);
background(0, 5);
translate(width/2, height/2);
let x = noise(b.x*0.01, b.y);
let y = noise(b.y*0.01);
b.move(x, y);
b.display();
}