X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fcolor.h;h=8feabed9795fe3a58b2365bd927ea093aefa191d;hb=a937f7fe71861a13de8086983ae244c82c56eeff;hp=f3a0e120d0b116376c9dee5483c3945867ff9e81;hpb=7fae19fa22e5cf1bbc8ff6d7438d9bb7dae19181;p=nothing.git diff --git a/src/color.h b/src/color.h index f3a0e120..8feabed9 100644 --- a/src/color.h +++ b/src/color.h @@ -1,19 +1,22 @@ #ifndef COLOR_H_ #define COLOR_H_ -#include +#include typedef struct Color { float r, g, b, a; } Color; Color rgba(float r, float g, float b, float a); -// TODO: color_from_hexstr -> hexstr -Color color_from_hexstr(const char *hexstr); +Color hexstr(const char *hexstr); SDL_Color color_for_sdl(Color color); Color color_darker(Color color, float d); Color color_desaturate(Color color); +Color color_invert(Color c); + +Color color_scale(Color c, Color fc); + #endif // COLOR_H_