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… On Oct 27, 2016, at 9:43 AM, Alex Harui <aha...@adobe.com> wrote: >> This code works in Flash because it supports argb. I took the easy way >> out by simply rejecting argb values, but I guess we could break off the >> alpha channel and set the alpha with that value. > > That sound like there are multiple possible solutions so there should be > multiple classes, one for each solution. IIRC, CSS has RGB and RGBA types > and we may need to support both properly. > > Maybe we need to find a way to introduce an RGB and RGBA type in an > efficient way so you can strongly type your color handling code. IMO it is > a bit of a hack to be using uint for a Color, but that's how Flash does it.