Hex constant method starts from ".a": 0xCCCCCC.argb
Виталий Фадеев
vital.fadeev at gmail.com
Tue Dec 15 05:04:46 UTC 2020
On Monday, 14 December 2020 at 16:19:18 UTC, Adam D. Ruppe wrote:
> On Monday, 14 December 2020 at 16:11:16 UTC, Jacob Carlborg
> wrote:
>> Or you can call it `rgba`. It seems to be what Wikipedia
>> prefers [1].
>
> The ordering here tends to reflect the bytes. So argb puts the
> alpha byte first in the array whereas rgba puts red first.
>
> But there's other ways here including just saying argb(...) or
> foo.as!"argb" or whatever well.
I think about .rgba.
Yes. The ordering! The logic.
ARGB = .argb
Thanks!
More information about the Digitalmars-d-learn
mailing list