From b482cab8cfe1503d213efe40fb3140ce5eabf3e2 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sun, 28 Dec 2025 07:54:10 -0500 Subject: [PATCH] fix: Clear canvas each frame to prevent darkening --- components/cursor-effect.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/cursor-effect.tsx b/components/cursor-effect.tsx index b049fc0..26c8619 100644 --- a/components/cursor-effect.tsx +++ b/components/cursor-effect.tsx @@ -62,9 +62,8 @@ export function CursorEffect() { window.addEventListener('mousemove', handleMouseMove) const animate = () => { - // Fade out - ctx.fillStyle = 'rgba(10, 10, 10, 0.08)' - ctx.fillRect(0, 0, canvas.width, canvas.height) + // Clear canvas completely each frame - no lingering + ctx.clearRect(0, 0, canvas.width, canvas.height) const spores = sporesRef.current