Merge pull request #446 from FransM/ImgClock

Make : between hours and minutes flash
pull/450/head
Gordon Williams 2020-05-26 08:34:28 +01:00 committed by GitHub
commit 799efd80d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);