]> git.lizzy.rs Git - nothing.git/blob - src/color.h
Merge pull request #505 from tsoding/108
[nothing.git] / src / color.h
1 #ifndef COLOR_H_
2 #define COLOR_H_
3
4 #include <SDL2/SDL.h>
5
6 typedef struct Color {
7     float r, g, b, a;
8 } Color;
9
10 Color rgba(float r, float g, float b, float a);
11 Color hexstr(const char *hexstr);
12 SDL_Color color_for_sdl(Color color);
13
14 Color color_darker(Color color, float d);
15
16 Color color_desaturate(Color color);
17
18 #endif  // COLOR_H_