fade / tween color of colorMaterial

Software: Away3D 4.x

Manuel L., Member
Posted: 16 April 2013 01:10 PM   Total Posts: 99

Hey guys, is there any chance to fade or tween the color of ColorMaterial, that it looks more smooth?

   

SuperSam, Sr. Member
Posted: 18 April 2013 12:36 AM   Total Posts: 102   [ # 1 ]

Yes, you’ll have to tween each color channel independently. You can separate them like so:

var color:int 0xFF11AAFF;
var 
alpha:int color >>> 24 0xFF;
var 
red:int color >>> 16 0xFF;
var 
green:int color >>> 0xFF;
var 
blue:int color 0xFF
   

Manuel L., Member
Posted: 18 April 2013 12:12 PM   Total Posts: 99   [ # 2 ]

ah, cool thank you, i will try smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X