]> git.lizzy.rs Git - nothing.git/blobdiff - src/color.h
Merge pull request #107 from tsoding/102
[nothing.git] / src / color.h
index 7c1ad5d2bda9ee7301eb743a7437e1cb916169f6..9510b55aecc2d7207564e4bf3b5ffd67f6931b2f 100644 (file)
@@ -7,7 +7,12 @@ 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);
+
 #endif  // COLOR_H_