style: RPM number right by one character width
This commit is contained in:
@@ -151,9 +151,9 @@ function draw(cur,max){
|
||||
|
||||
// RPM number
|
||||
ctx.fillStyle='#fff';ctx.font=`200 ${Math.max(128,W/4.5)|0}px 'NEXT ART',sans-serif`;ctx.textAlign='center';
|
||||
ctx.fillText(Math.round(cur).toLocaleString(),sx+40,sy-260);
|
||||
ctx.fillText(Math.round(cur).toLocaleString(),sx+120,sy-260);
|
||||
ctx.fillStyle='rgba(255,255,255,.12)';ctx.font=`${Math.max(32,W/17)|0}px 'NEXT ART',sans-serif`;
|
||||
ctx.fillText('\u00d71000 rpm',sx+40,sy-180);
|
||||
ctx.fillText('\u00d71000 rpm',sx+120,sy-180);
|
||||
|
||||
// redline
|
||||
ctx.strokeStyle='rgba(255,40,30,.1)';ctx.lineWidth=1;ctx.setLineDash([3,6]);
|
||||
|
||||
Reference in New Issue
Block a user