xxxxxxxxxx
18
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
noStroke();
inc = inc + 0.05
let value = sin(inc);
let newValue = map(value, -1, 1, 0, 300);
ellipse(newValue, height / 2, 40);
// let a = map(mouseX, 0, width, 40, 175);
// circle()
}