Blue occupies bits 0 to 7, Green occupies bits 8 to 15, Red occupies bits 16 to 23, and Alpha occupies bits 24 to 31.
Note that in some situations, a colour of zero is considered transparent (See
colour.hfor precise declaration and ordering)
unsigned long int br_colour Packed RGBA values
Binary operations (And
^) may sometimes be useful. However, all operands should still be colours, and if necessary, constructed using
Only equality comparisons are valid between colours.
From individual component values
given three 8-bit colour components.
given three 8-bit colour components and an 8-bit alpha component.
To component values
Only assign colours.
Generated with CERN WebMaker