Canvas: Fix selector not animating
This commit is contained in:
parent
e63b2779e1
commit
0a664752e9
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export function RenderSelector(ctx: CanvasRenderingContext2D, frameCount: number
|
||||||
|
|
||||||
ctx.strokeStyle = '#3B82F6';
|
ctx.strokeStyle = '#3B82F6';
|
||||||
ctx.lineWidth = 4 / scale;
|
ctx.lineWidth = 4 / scale;
|
||||||
ctx.globalAlpha = 0.25 * (Math.sin(frameCount * 0.0125) ** 2);
|
ctx.globalAlpha = (Math.sin(frameCount * 0.0450) ** 2);
|
||||||
ctx.strokeRect(x, y, width, height);
|
ctx.strokeRect(x, y, width, height);
|
||||||
ctx.globalAlpha = 1;
|
ctx.globalAlpha = 1;
|
||||||
ctx.lineWidth = 1;
|
ctx.lineWidth = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue