Open moorepants opened 4 years ago
We are reusing the color trait from ipywidgets
core. We could subclass it in pythreejs to add a few more colorwords (or this could be done in ipywidgets if these are commonly accepted CSS colorwords), if someone submit a PR implementing it :)
Ok, I'm trying to swap out pythreejs in PyDy for our custom three.js wrapper and this issue came up. I'll look into it when I'm next working on it.
For example if I set a material color to
grey
in pythreejs I get an error and have to change it togray
, but you can see that three.js supports bothgrey
andgray
: https://github.com/mrdoob/three.js/blob/master/src/math/Color.js#L7.