xxxxxxxxxx
17
let position;
let velocity;
function setup() {
createCanvas(400, 400);
position = createVector(0, 100);
velocity = createVector(1, 0);
}
function draw() {
background(220);
ellipse(position.x, position.y, 100);
// position = position + velocity;
position.add(velocity);
}