commit
aba2be6c58
|
|
@ -23,13 +23,13 @@ function draw() {
|
||||||
g.drawString(time, X, Y, true /*clear background*/);
|
g.drawString(time, X, Y, true /*clear background*/);
|
||||||
// draw the seconds (2x size 7 segment)
|
// draw the seconds (2x size 7 segment)
|
||||||
g.setFont("7x11Numeric7Seg",2);
|
g.setFont("7x11Numeric7Seg",2);
|
||||||
g.drawString(("0"+d.getSeconds()).substr(-2), X+30, Y, true /*clear background*/);
|
g.drawString(("0"+d.getSeconds()).substr(-2), X+35, Y, true /*clear background*/);
|
||||||
// draw the date, in a normal font
|
// draw the date, in a normal font
|
||||||
g.setFont("6x8");
|
g.setFont("6x8", 3);
|
||||||
g.setFontAlign(0,1); // align center bottom
|
g.setFontAlign(0,1); // align center bottom
|
||||||
// pad the date - this clears the background if the date were to change length
|
// pad the date - this clears the background if the date were to change length
|
||||||
var dateStr = " "+require("locale").date(d)+" ";
|
var dateStr = " "+require("locale").date(d)+" ";
|
||||||
g.drawString(dateStr, g.getWidth()/2, Y+15, true /*clear background*/);
|
g.drawString(dateStr, g.getWidth()/2, Y+35, true /*clear background*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear the screen once, at startup
|
// Clear the screen once, at startup
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue