style: shorter top line, thicker gauge tick marks
This commit is contained in:
@@ -94,14 +94,14 @@ const M={aspect_ratio:"16:9",render_mode:"contain"};let GAME_ID='';
|
||||
const sx=Ca/640*W,sy=Cb/480*H,sr=Cr/640*W;
|
||||
if(i<Na){const p=i/(Na-1),a=d2r(As+(Ae-As)*p);return{x:sx+sr*Math.cos(a),y:sy+sr*Math.sin(a),r:a-Math.PI/2}}
|
||||
const ae=d2r(Ae),ex=sx+sr*Math.cos(ae),ey=sy+sr*Math.sin(ae),p=(i-Na+1)/(Nl-1);
|
||||
return{x:ex+p*(W*.93-ex),y:ey,r:0}
|
||||
return{x:ex+p*(W*.75-ex),y:ey,r:0}
|
||||
}
|
||||
|
||||
function draw(cur,max){
|
||||
max=max||8000;cur=cur||0;sz();
|
||||
const W=canvas.width/devicePixelRatio,H=canvas.height/devicePixelRatio;
|
||||
ctx.clearRect(0,0,W,H);
|
||||
const tw=Math.max(14,W/38),th=Math.max(4,H/100),gap=Math.max(1,tw*.15);
|
||||
const tw=Math.max(18,W/32),th=Math.max(6,H/70),gap=Math.max(1,tw*.12);
|
||||
|
||||
// bg ticks
|
||||
for(let i=0;i<N;i++){const p=tp(i);ctx.save();ctx.translate(p.x,p.y);ctx.rotate(p.r);ctx.fillStyle='rgba(255,255,255,.04)';ctx.fillRect(-tw/2,-th/2,tw-gap,th);ctx.restore()}
|
||||
|
||||
Reference in New Issue
Block a user