Skip to content

i am trying to change the color of the lines in Vanta NET however only the dots are changing the color #190

@Potafe

Description

@Potafe

Here is my code for reference:

const vantaRef = useRef(null);

useEffect(() => {
const vantaEffect = NET({
el: vantaRef.current,
THREE: THREE,
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.0,
minWidth: 200.0,
scale: 1.0,
scaleMobile: 1.0,
color: 0xff3f81,
lineColors: 0xff3f81,
backgroundColor: 0x0,
points: 20.0,
spacing: 17.0,
showDots: true,
maxDistance: 20.0,
});

console.log("Vanta Effect:" , vantaEffect);

return () => {
  if (vantaEffect) vantaEffect.destroy();
};

}, []);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions