Colors are often expressed as hex eg: 0xFF00FFFF, but colors are also expressed as floats and chars. it can be nice to pack a color into a uint32_t rather than dealing with an array of components. Here is how…

Outputs …

Compile and run with GCC

or Clang