Confused about Xojo Colors (after all these years)

In Xojo a color can be expressed a &cRRGGBBAA

but the AA is “optional” and assumes to be a default of FF

so how does Xojo actually parse those values
since

&CFF0000FF is the same as &CFF0000 ... ie both sold RED
&C000000 is Solid Black, but &C00000000 should be TRANSPARENT

So when/how does one know what the alpha is in those edge circumstances?

Xojo’s alpha is backwards

https://docs.xojo.com/Color.Alpha

The alpha channel is the translucency of the color represented as an integer between 0 (opaque) and 255 (transparent).

so defaulting to 0 means 100% opaque

1 Like