Update particles.tsx
This commit is contained in:
parent
7a4a946aea
commit
88fca6fb55
@ -41,6 +41,7 @@ interface ParticlesProps {
|
|||||||
refresh?: boolean;
|
refresh?: boolean;
|
||||||
vx?: number;
|
vx?: number;
|
||||||
vy?: number;
|
vy?: number;
|
||||||
|
color?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Particles: React.FC<ParticlesProps> = ({
|
const Particles: React.FC<ParticlesProps> = ({
|
||||||
@ -52,6 +53,7 @@ const Particles: React.FC<ParticlesProps> = ({
|
|||||||
refresh = false,
|
refresh = false,
|
||||||
vx = 0.1,
|
vx = 0.1,
|
||||||
vy = 0.1,
|
vy = 0.1,
|
||||||
|
color = "#ff00ff",
|
||||||
}) => {
|
}) => {
|
||||||
const canvasRef = useRef<HTMLCanvasElement>(null);
|
const canvasRef = useRef<HTMLCanvasElement>(null);
|
||||||
const canvasContainerRef = useRef<HTMLDivElement>(null);
|
const canvasContainerRef = useRef<HTMLDivElement>(null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user