fix afterimage
This commit is contained in:
parent
5586356c4b
commit
6234ba3299
@ -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);
|
||||
|
@ -112,7 +112,7 @@ StyleAPI {
|
||||
}
|
||||
}
|
||||
}
|
||||
context.clearRect(0, 0, width, height);
|
||||
context.clearRect(0, 0, width+32, height+32);
|
||||
createPoint();
|
||||
|
||||
context.beginPath();
|
||||
|
@ -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);
|
||||
|
@ -113,7 +113,7 @@ StyleAPI {
|
||||
}
|
||||
}
|
||||
|
||||
context.clearRect(0, 0, width, height);
|
||||
context.clearRect(0, 0, width+32, height+32);
|
||||
createPoint();
|
||||
|
||||
context.beginPath();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user