style: 2x thicker gauge overall (108x36px base)

This commit is contained in:
2026-07-25 17:17:47 +08:00
parent a14ca6a607
commit 77a19ef29d
+1 -1
View File
@@ -101,7 +101,7 @@ const M={aspect_ratio:"16:9",render_mode:"contain"};let GAME_ID='';
max=max||8000;cur=cur||0;sz(); max=max||8000;cur=cur||0;sz();
const W=canvas.width/devicePixelRatio,H=canvas.height/devicePixelRatio; const W=canvas.width/devicePixelRatio,H=canvas.height/devicePixelRatio;
ctx.clearRect(0,0,W,H); ctx.clearRect(0,0,W,H);
const tw=Math.max(54,W/11),th=Math.max(18,H/24),gap=Math.max(2,tw*.06); const tw=Math.max(108,W/5),th=Math.max(36,H/12),gap=Math.max(3,tw*.04);
// tick thickness varies: 2x at bottom arc, 1x at top // tick thickness varies: 2x at bottom arc, 1x at top
function twScale(i){if(i>=Na)return 1;return 2-(i/(Na-1))} function twScale(i){if(i>=Na)return 1;return 2-(i/(Na-1))}