]> git.lizzy.rs Git - nothing.git/blobdiff - src/color.h
(#68) Wire up boxes entity
[nothing.git] / src / color.h
index 9510b55aecc2d7207564e4bf3b5ffd67f6931b2f..1d5730426e2a7f9a6c95441d864ae6645a07e901 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef COLOR_H_
 #define COLOR_H_
 
-typedef struct SDL_Color SDL_Color;
+#include <SDL2/SDL.h>
 
 typedef struct color_t {
     float r, g, b, a;
@@ -13,6 +13,8 @@ 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_darker(color_t color, float d);
+
 color_t color_desaturate(color_t color);
 
 #endif  // COLOR_H_