style: increase gap between RPM number and unit label
This commit is contained in:
@@ -151,9 +151,9 @@ function draw(cur,max){
|
|||||||
|
|
||||||
// RPM number
|
// RPM number
|
||||||
ctx.fillStyle='#fff';ctx.font=`200 ${Math.max(64,W/9)|0}px 'NEXT ART',sans-serif`;ctx.textAlign='center';
|
ctx.fillStyle='#fff';ctx.font=`200 ${Math.max(64,W/9)|0}px 'NEXT ART',sans-serif`;ctx.textAlign='center';
|
||||||
ctx.fillText(Math.round(cur).toLocaleString(),sx,sy-180);
|
ctx.fillText(Math.round(cur).toLocaleString(),sx,sy-190);
|
||||||
ctx.fillStyle='rgba(255,255,255,.12)';ctx.font=`${Math.max(16,W/34)|0}px 'NEXT ART',sans-serif`;
|
ctx.fillStyle='rgba(255,255,255,.12)';ctx.font=`${Math.max(16,W/34)|0}px 'NEXT ART',sans-serif`;
|
||||||
ctx.fillText('\u00d71000 rpm',sx,sy-155);
|
ctx.fillText('\u00d71000 rpm',sx,sy-150);
|
||||||
|
|
||||||
// redline
|
// redline
|
||||||
ctx.strokeStyle='rgba(255,40,30,.1)';ctx.lineWidth=1;ctx.setLineDash([3,6]);
|
ctx.strokeStyle='rgba(255,40,30,.1)';ctx.lineWidth=1;ctx.setLineDash([3,6]);
|
||||||
|
|||||||
Reference in New Issue
Block a user