xxxxxxxxxx
18
let boton;
let x = 0;
function setup() {
createCanvas(400, 400);
button = createButton("submit");
button.position(150, 65);
}
function draw() {
// background(220);
x++;
button.position(x, 65);
if (x > width * 1.5) {
x = 0;
}
}