Make : between hours and minutes flash

Flash the : separator; even seconds off, odd seconds on
pull/446/head
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,6 +45,7 @@ function draw() {
cg.setFontAlign(1,-1);
cg.drawString(hours, x, 0);
x+=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);