1 2 3 4 5 6
#include "RenderShared.h" Color colorFromHex(float32 r, float32 g, float32 b, float32 a) { float32 scale = 1.f / 255.f; return { r * scale, g * scale, b * scale, a * scale }; }