vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.99k stars 298 forks source link

Sphere colour option #101

Closed jackkemmish closed 2 years ago

jackkemmish commented 2 years ago

Hi there, just wondering if there's an elegant way to change the sphere's colour using an option? I can't see anything in the readme which would allow this?

Thanks in advance!

Jack

vasturiano commented 2 years ago
myGlobe.globeMaterial().color = new THREE.Color('rgb(255, 0, 0)');
jackkemmish commented 2 years ago

Hi @vasturiano and thanks for the reply.

Worked like a charm!

Thanks!

Jack