xxxxxxxxxx
24
function setup() {
createCanvas(600, 600);
}
function draw() {
background(220);
noStroke();
fill(255);
ellipse(width/2, height/2, width/2);
let angle = atan2(mouseY - width/2, mouseX - width/2);
console.log(angle);
push();
translate(width/2, height/2);
rotate(angle);
fill(0);
ellipse(width/10, 0, width/4);
fill(255);
ellipse(width/8, 0, width/15);
pop();
}