diff --git a/src/vanta.net.js b/src/vanta.net.js index 0b65128..232d9ca 100644 --- a/src/vanta.net.js +++ b/src/vanta.net.js @@ -66,6 +66,16 @@ class Effect extends VantaBase { return this.points.push(sphere); } + setOptions(userOptions) { + super.setOptions(userOptions) + if(userOptions.color) { + for (let i = 0; i < this.points.length; i++) { + var point = this.points[i]; + point.material.color = new THREE.Color(userOptions.color); + } + } + } + onInit() { this.cont = new THREE.Group() this.cont.position.set(0,0,0)