xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
}
let ang = 0;
function draw() {
let w = width /2 ;
let hei = height/2;
background(0);
let s = second();
let m = minute();
let h = hour();
let angS = map(s,0,60,0,PI*2);
let angM = map(m,0,60,0,PI*2);
let angH = map(h,0,12,0,PI*2);
fill('white');
arc(width /2,height/2, 200 ,200,0 ,angH,PIE);
fill('purple');
arc(width /2,height/2 , 100 ,100,0 ,angM,PIE);
fill('red');
arc(width /2, height/2 , 50 ,50,0 ,angS,PIE);
}