xxxxxxxxxx
16
function setup() {
createCanvas(displayWidth, displayHeight);
}
var position = {
x: 0,
y: 0
};
function draw() {
background(100);
circle(position.x, position.y, 50);
position.x = position.x + (mouseX - position.x) / 10;
position.y = position.y + (mouseY - position.y) / 10;
}