]> git.lizzy.rs Git - nothing.git/blobdiff - src/color.h
(#813) Implement player_layer_render
[nothing.git] / src / color.h
index a565461f444965fb56254d2836aae45742749352..d169df2cf5bfe84a591e5cceaafd45e5943268f3 100644 (file)
@@ -3,17 +3,18 @@
 
 #include <SDL2/SDL.h>
 
-typedef struct color_t {
+typedef struct Color {
     float r, g, b, a;
-} color_t;
+} Color;
 
-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 rgba(float r, float g, float b, float a);
+Color hexstr(const char *hexstr);
+SDL_Color color_for_sdl(Color color);
 
-color_t color_darker(color_t color, float d);
+Color color_darker(Color color, float d);
 
-color_t color_desaturate(color_t color);
+Color color_desaturate(Color color);
+
+Color color_invert(Color c);
 
 #endif  // COLOR_H_