#193·vanta

无法在我的项目中获得适当的颜色

作者: UjjwalSaini07创建于 2024年9月10日更新于 2025年3月2日

我使用了以下代码: useEffect(() => { const vantaEffect = BIRDS({ el: vantaRef.current, THREE: THREE, mouseControls: true, touchControls: true, gyroControls: false, minHeight: 200.00, minWidth: 200.00, scale: 1.00, scaleMobile: 1.00, backgroundColor: 0x030321, colorMode: "variance", birdSize: 1.60, speedLimit: 4.00, separation: 87.00, alignment: 44.00, cohesion: 38.00 }); return () => { if (vantaEffect) vantaEffect.destroy(); }; }, []); 但是,我尝试了很多东西,鸟的颜色都显示正常。 图像引用: