fix: Clear canvas each frame to prevent darkening
This commit is contained in:
parent
937a12d2a6
commit
b482cab8cf
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue