]> git.lizzy.rs Git - nothing.git/blobdiff - src/color.h
Merge pull request #107 from tsoding/102
[nothing.git] / src / color.h
index fa13eaa765261f0bbc0a8dee18aac6e228d067dd..9510b55aecc2d7207564e4bf3b5ffd67f6931b2f 100644 (file)
@@ -7,8 +7,10 @@ typedef struct color_t {
     float r, g, b, a;
 } color_t;
 
+// TODO(#108): color constructor can be easily shadowed in many situation
 color_t color(float r, float g, float b, float a);
 color_t color256(Uint8 r, Uint8 g, Uint8 b, Uint8 a);
+color_t color_from_hexstr(const char *hexstr);
 SDL_Color color_for_sdl(color_t color);
 
 color_t color_desaturate(color_t color);