fix: remove lineCap round to eliminate solid circle artifacts

This commit is contained in:
2026-07-25 17:25:45 +08:00
parent aedbcced58
commit 2aabd54d50
+2 -2
View File
@@ -98,7 +98,7 @@ function draw(cur,max){
ctx.arc(sx,sy,sr,d2r(As),d2r(Ae),false);
ctx.lineTo(lx,ey);
ctx.strokeStyle='rgba(255,255,255,.04)';
ctx.lineWidth=gw;ctx.lineCap='round';ctx.lineJoin='round';
ctx.lineWidth=gw;ctx.lineJoin='round';
ctx.stroke();
// progress stroke
@@ -113,7 +113,7 @@ function draw(cur,max){
ctx.lineTo(ex+(pd-arcLen)/lineLen*(lx-ex),ey);
}
ctx.strokeStyle=cur>=rl?'rgba(255,50,35,.95)':'rgba(255,255,255,.85)';
ctx.lineWidth=gw;ctx.lineCap='round';ctx.lineJoin='round';
ctx.lineWidth=gw;ctx.lineJoin='round';
ctx.stroke();
}