Closed noamsuissa closed 5 months ago
I would like to change the particle colour to black. I changed the page.tsx's first div to the following to allow for testing:
page.tsx
<div className="flex flex-col items-center justify-center w-screen h-screen overflow-hidden bg-gradient-to-tl from-white via-zinc-600/20 to-black">
Next, in the drawCircle() function in the particles.tsx script, I modified this line:
drawCircle()
particles.tsx
context.current.fillStyle = `rgba(0,0,0,${alpha})`;
Any other color seems to work except this one. No particles appear at all.
In global.css:
global.css
body { background-color: white !important; }
I would like to change the particle colour to black. I changed the
page.tsx
's first div to the following to allow for testing:<div className="flex flex-col items-center justify-center w-screen h-screen overflow-hidden bg-gradient-to-tl from-white via-zinc-600/20 to-black">
Next, in the
drawCircle()
function in theparticles.tsx
script, I modified this line:context.current.fillStyle = `rgba(0,0,0,${alpha})`;
Any other color seems to work except this one. No particles appear at all.