From 0a664752e9c7c008a655502fb9c5971aa87eb861 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Fri, 4 Nov 2022 16:13:33 +0100 Subject: [PATCH] Canvas: Fix selector not animating --- src/Components/Canvas/Selector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Canvas/Selector.ts b/src/Components/Canvas/Selector.ts index a91e924..c9ea814 100644 --- a/src/Components/Canvas/Selector.ts +++ b/src/Components/Canvas/Selector.ts @@ -33,7 +33,7 @@ export function RenderSelector(ctx: CanvasRenderingContext2D, frameCount: number ctx.strokeStyle = '#3B82F6'; 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.globalAlpha = 1; ctx.lineWidth = 1;