flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FLEXJS] Colors (was Re: [FlexJS] HTMLElementWrapper extending Sprite)
Date Fri, 28 Oct 2016 16:09:16 GMT


On 10/28/16, 2:52 AM, "Harbs" <harbs.lists@gmail.com> wrote:

>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.

Right, so wouldn't having actual RGB and RGBA classes instead of uint in
our APIs help us solve this problem?  I'm assuming that's what you are
suggesting?  The toValue() for RGBA would be different based on platform.

-Alex

Mime
View raw message