1
0
Fork 0

font clock bug fix: Transition on vecotor 4 clock between roman numerals and digits not clearing

master
adrian w kirk 2021-05-23 23:03:38 +01:00
parent 658b10fed3
commit 1fc24b9fe7
3 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,6 @@ class RomanNumeralFont extends NumeralFont{
x+dim[0],y+dim[1],
x,y+dim[1]
]);*/
g.setColor(1.0,1.0,1.0);
g.setFontAlign(-1,-1,0);
g.setFont("Vector",50);
g.drawString(hour_txt,x,y);

View File

@ -71,7 +71,7 @@ class HourScriber {
this.curr_numeral_font.draw(this.curr_hour_str,
this.curr_hour_x,
this.curr_hour_y);
//console.log("erasing old hour");
//console.log("erasing old hour display:" + this.curr_hour_str + " color:" + background);
var hours_frac = this.hours / 12;
var angle = TWO_PI*hours_frac;
var dimensions = this.numeral_font.getDimensions(this.hours);

View File

@ -219,6 +219,7 @@ function next_font() {
}
if (curr_font != numeral_fonts_index) {
console.log("numeral font changed")
for (var i = 0; i < hour_scribers.length; i++) {
hour_scribers[i].setNumeralFont(
numeral_fonts[numeral_fonts_index]);