xxxxxxxxxx
let secondhand;
let minumtehand;
function setup() {
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
rectMode(CENTER);
}
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 + 100);
line(0,0,0,250);
pop();
push();
rotate(minutehand+100);
line(0,0,0,200);
pop();
}