xxxxxxxxxx
21
function setup() {
createCanvas(600, 600);
}
function draw() {
background(204);
translate(width / 2, height / 2);
let a = atan2(mouseY - height / 2, mouseX - width / 2);
rotate(a);
noStroke();
var diam = width / 2.5;
ellipse(0, 0,diam, diam);
push();
ellipse(0, 0,diam, diam);
fill('black');
ellipse(20, 20, diam / 2, diam/ 2);
fill('white');
ellipse(30, 39, diam / 10, diam / 10);
pop();
// rect(-30, -5, 60, 10);
}