xxxxxxxxxx
25
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
var sec=second()
var min=minute();
var hr=hour()-12
textSize(15)
fill(0)
noStroke()
text(hr,200,200)
text(' : '+min,220,200)
text(' : '+sec,240,200)
translate(200,200)
noFill()
strokeWeight(10)
stroke(255,0,0)
map(sec)
arc(0,0,200,200,0,sec)
}