1
0
Fork 0

Make : between hours and minutes flash

Flash the : separator; even seconds off, odd seconds on
master
Frans Meulenbroeks 2020-05-24 22:41:21 +02:00
parent 6b09377414
commit 7e92aba454
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ function draw() {
cg.setFontAlign(1,-1);
cg.drawString(hours, x, 0);
x+=2;
cg.fillRect(x, 10, x+2, 10+2).fillRect(x, 20, x+2, 20+2);
if (t.getSeconds() & 1)
cg.fillRect(x, 10, x+2, 10+2).fillRect(x, 20, x+2, 20+2);
x+=6;
cg.setFontAlign(-1,-1);
cg.drawString(("0"+t.getMinutes()).substr(-2), x, 0);