5 color_t color(float r, float g, float b, float a)
7 const color_t result = {
17 SDL_Color color_for_sdl(color_t color)
19 const SDL_Color result = {
20 .r = (Uint8)roundf(color.r * 255.0f),
21 .g = (Uint8)roundf(color.g * 255.0f),
22 .b = (Uint8)roundf(color.b * 255.0f),
23 .a = (Uint8)roundf(color.a * 255.0f)