fix afterimage

This commit is contained in:
SO_RA 2022-03-22 01:41:28 +08:00
parent 5586356c4b
commit 6234ba3299
Signed by: Mashiro_Sorata
GPG Key ID: 2C0B3C32FD531F77
5 changed files with 5 additions and 5 deletions

View File

@ -92,7 +92,7 @@ StyleAPI {
this_phase = (this_phase+this_speed)%(Math.PI*64);
context.clearRect(0, 0, width, height);
context.clearRect(0, 0, width+32, height+32);
drawLine(this_delta*trebleAmRatio*trebleAm, trebleColor, 1.5, this_phase, false);
drawLine(this_delta*bassAmRatio*bassAm, bassColor, 1.5, this_phase+0.8, false);

View File

@ -112,7 +112,7 @@ StyleAPI {
}
}
}
context.clearRect(0, 0, width, height);
context.clearRect(0, 0, width+32, height+32);
createPoint();
context.beginPath();

View File

@ -113,7 +113,7 @@ StyleAPI {
let _dx = Math.round(_ux/2);
let _y = halfHeight-_y_dy
context.clearRect(0, 0, width, height);
context.clearRect(0, 0, width+32, height+32);
if(lineRotateFlag || centerRotateFlag) {
context.transform(1, centerRotateFlag*centerRotateAngle * degUnit, -lineRotateFlag*lineRotateAngle * degUnit, 1, lineRotateFlag*Math.sin(1.05*lineRotateAngle*degUnit)*_y, 0);

View File

@ -113,7 +113,7 @@ StyleAPI {
}
}
context.clearRect(0, 0, width, height);
context.clearRect(0, 0, width+32, height+32);
createPoint();
context.beginPath();

View File

@ -39,7 +39,7 @@ StyleAPI {
}
}
context.clearRect(0, 0, width, height);
context.clearRect(0, 0, width+32, height+32);
context.beginPath();
context.moveTo(0, halfHeight);