xxxxxxxxxx
let secondHand;
let minuteHand;
function setup() {
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
}
function draw() {
background(0);
stroke(255);
noFill();
secondHand= map(second(), 0,59,0,360);
minuteHand =map(minute(), 0,59,0,360);
translate(width/2, height/2);
push();
rotate(secondHand+180);
line(0, 0, 0, 200);
pop();
push();
rotate(minuteHand+180);
line(0, 0, 0, 200);
pop();
}