I am using the TweenMax JS library with the ColorPropsPlugin which will tween color values which are specified in many formats, the problem I have is that the result is always in the form of a string:
"rgb(255,255,255)"
How can that be converted in to a hex number like:
0xffffff
I would at first cut away the CSS parts:
Then split it into separate numbers:
Convert the single numbers to hex
And glue it back together: