Luna::Color::from_rgba8
constexpr Float4 from_rgba8(u32 color)
Converts one 32-bit color value to one Float4 linear color. The source color is interpreted in RGBA order (R in least significant 8 bits, A in most significant 8 bits).
Parameters
-
in color
The color to convert.
Return value
Returns the converted color.