flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: [FLEXJS] Colors (was Re: [FlexJS] HTMLElementWrapper extending Sprite)
Date Fri, 28 Oct 2016 09:52:19 GMT
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 <aharui@adobe.com> wrote:

> 
> 
> On 10/26/16, 11:59 PM, "Harbs" <harbs.lists@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
> 


Mime
View raw message