Color.__anonymous

The color components are available as a static array, individual bytes, and a uint inside this union.

Since it is anonymous, you can use the inner members' names directly.

struct Color
@safe
union __anonymous {}

Members

Structs

__anonymous
struct __anonymous

Holder for rgba individual components.

Variables

asUint
uint asUint;

The components as a single 32 bit value (beware of endian issues!)

components
ubyte[4] components;

The color components are available as a static array, individual bytes, and a uint inside this union.

Suggestion Box / Bug Report