Defining Colors Using ActionScript

//where a,b,c are integers between 0 - 255
//a is red, b is blue, c is green
var newColor:int = a << 16 | b << 8 | c;

And that’s it. Haven’t had the need to create colors via HSB method yet, so if anyone knows please enlighten me please ^_^


About this entry