xxxxxxxxxx
14
let moving, velocity;
function setup() {
createCanvas(400, 400);
moving = createVector(200, 200);
velocity = createVector(2, 2);
}
function draw() {
background(220);
circle(moving.x, moving.y, 20);
moving.add(velocity);
}