Luna::Color::to_abgr8

constexpr u32 to_abgr8(const Float4 &color)

Converts one Float4 linear color value to one 32-bit color value. Every color component takes 8 bits, and is arranged in ABGR order (A in least significant 8 bits, R in most significant 8 bits).

Parameters

  • in color

    The color to convert.

Return value

Returns the converted color.