fix: remove lineCap round to eliminate solid circle artifacts
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user