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
You’re currently reading “Defining Colors Using ActionScript”, an entry on Visual Gratis
- Published:
- 04.18.10 / 9pm
- Category:
- AS3, Actionscript, Flash, Programming
- Tags:
- Post Navigation:
- « Paint By Music #2
Dreams on Twitter »