Hex constant method starts from ".a": 0xCCCCCC.argb
Adam D. Ruppe
destructionator at gmail.com
Mon Dec 14 16:19:18 UTC 2020
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.
More information about the Digitalmars-d-learn
mailing list