There’s two ways to represent RGB with alpha as a uint:

AARRGGBB (or 0xAARRGGBB)
and
RRGGBBAA (or 0xRRGGBBAA)

The two quite obviously have very different numeric representations.

The standard for HTML is RRGGBBAA.

On Oct 27, 2016, at 6:05 PM, Alex Harui <aha...@adobe.com> wrote:

> 
> 
> On 10/26/16, 11:59 PM, "Harbs" <harbs.li...@gmail.com> wrote:
> 
>> There’s also an issue that Flash uses ARGB, while the default in browsers
>> seems to be RGBA.
>> 
>> I think simply avoiding uint representations of RGBA is the simplest
>> solution…
> 
> Not quite sure what you mean by that.  Are you suggesting that we add an
> RGB and RGBA class and use it instead of uint in our APIs?  I think that
> might be worth a try.  It looks like there is an RGBColor class in JS.swc
> already.  
> 
> Thoughts?
> -Alex
> 

Reply via email to