Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmore clarity on how to animate color #55
Open
Comments
|
lineMaterial.uniforms.color.value is already a THREE.Color, your setHSL function could get the uniform s a parameter, and .set(r,g,b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


It wasn't clear this was possible at first because its not in the documentation or any examples and the sort of functions that regularly make this work (color.setHSL) don't work.
Anyway, a bit of hacking and I got it working. May be nice to add.
I hacked apart the internals a bit and just added these modified functions to my project
and use it like this:
works great! demo: