style: RPM number higher and righter

This commit is contained in:
2026-07-25 18:58:20 +08:00
parent c121a902f9
commit f9afec786c
+2 -2
View File
@@ -151,9 +151,9 @@ function draw(cur,max){
// RPM number // RPM number
ctx.fillStyle='#fff';ctx.font=`200 ${Math.max(128,W/4.5)|0}px 'NEXT ART',sans-serif`;ctx.textAlign='center'; 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,sy-240); ctx.fillText(Math.round(cur).toLocaleString(),sx+40,sy-260);
ctx.fillStyle='rgba(255,255,255,.12)';ctx.font=`${Math.max(32,W/17)|0}px 'NEXT ART',sans-serif`; 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,sy-170); ctx.fillText('\u00d71000 rpm',sx+40,sy-180);
// 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]);