xxxxxxxxxx
15
function setup() {
createCanvas(400, 400);
}
function draw() {
background(204);
push();
translate(width / 2, height / 2);
let a = atan2(mouseY - height / 2, mouseX - width / 2);
rotate(a);
rect(-30, -5, 60, 10);
pop();
ellipse(mouseX, mouseY, 10, 10);
}