Luna::Color::from_bgra8

constexpr Float4 from_bgra8(u32 color)

Converts one 32-bit color value to one Float4 linear color. The source color is interpreted in BGRA order (B in least significant 8 bits, A in most significant 8 bits).

Parameters

  • in color

    The color to convert.

Return value

Returns the converted color.