Browse Source

fix afterimage

master
SO_RA 2 years ago
parent
commit
6234ba3299
Signed by untrusted user: Mashiro_Sorata
GPG Key ID: 2C0B3C32FD531F77
  1. 2
      styles/Preset_Ordinal_Scale_UI_bottom/Style.qml
  2. 2
      styles/Preset_circle/Style.qml
  3. 2
      styles/Preset_line/Style.qml
  4. 2
      styles/Preset_solidcircle/Style.qml
  5. 2
      styles/Preset_waves/Style.qml

2
styles/Preset_Ordinal_Scale_UI_bottom/Style.qml

@ -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);

2
styles/Preset_circle/Style.qml

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

2
styles/Preset_line/Style.qml

@ -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);

2
styles/Preset_solidcircle/Style.qml

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

2
styles/Preset_waves/Style.qml

@ -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…
Cancel
Save