fix: Clear canvas each frame to prevent darkening

This commit is contained in:
Jeff Emmett 2025-12-28 07:54:10 -05:00
parent 937a12d2a6
commit b482cab8cf
1 changed files with 2 additions and 3 deletions

View File

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