If you go from 0xFFFFFF to 0x000000 in hexadecimal, you will sweep many
colors in between that are probably not what you are looking for.

You need to sweep rgb values, and then extrapolate to the corresponding hex
color value. To calculate a hex for given r, g and b values you can use:

hex = r << 16 | g << 8 | b;

So what you need to do is tween those 3 values, and set the material color
on tween update.

Hope it helps,
Li

Reply via email to