]> git.lizzy.rs Git - nothing.git/blobdiff - src/color.h
Add TODO(#1248)
[nothing.git] / src / color.h
index 937782256b1057093ed08d4501ed89120654c91a..338a068dd14013388b52c41d6e841948255014a1 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <stdio.h>
 #include <SDL.h>
+#include "./system/s.h"
 
 #define COLOR_BLACK rgba(0.0f, 0.0f, 0.0f, 1.0f)
 #define COLOR_WHITE rgba(1.0f, 1.0f, 1.0f, 1.0f)
@@ -16,6 +17,7 @@ Color rgba(float r, float g, float b, float a);
 Color hsla(float h, float s, float l, float a);
 Color rgba_to_hsla(Color color);
 Color hexstr(const char *hexstr);
+Color hexs(String input);
 SDL_Color color_for_sdl(Color color);
 
 int color_hex_to_stream(Color color, FILE *stream);
@@ -29,11 +31,4 @@ Color color_invert(Color c);
 
 Color color_scale(Color c, Color fc);
 
-static inline
-Color color_set_alpha(Color c, float a)
-{
-    c.a = a;
-    return c;
-}
-
 #endif  // COLOR_H_