ashwan
09-08-2007, 01:49 AM
Hello!
In JSFL is there way to get the R, G & B values from a hexadecimal value that is returned by fill.color?
I was trying this:
hex = fill.color;
var rVal = hex >> 16;
var temp = hex ^ rVal << 16;
var gVal = temp >> 8;
var bVal = temp ^ gVal << 8;
but getting a 0 for all the values!
Thanks
Ashwan.
In JSFL is there way to get the R, G & B values from a hexadecimal value that is returned by fill.color?
I was trying this:
hex = fill.color;
var rVal = hex >> 16;
var temp = hex ^ rVal << 16;
var gVal = temp >> 8;
var bVal = temp ^ gVal << 8;
but getting a 0 for all the values!
Thanks
Ashwan.