2023-03-10 10:32:50 +00:00
|
|
|
// This file is part of noxos and licensed under the MIT open source license
|
2023-02-19 21:25:45 +00:00
|
|
|
|
|
|
|
#ifndef NOX_COLOR_H
|
|
|
|
#define NOX_COLOR_H
|
|
|
|
|
|
|
|
#include "utils/stdtypes.h"
|
|
|
|
|
2023-02-22 22:30:32 +00:00
|
|
|
// Colors from https://gogh-co.github.io/Gogh/
|
|
|
|
typedef enum {
|
|
|
|
COLOR_PAL_GREY_DARK,
|
|
|
|
COLOR_PAL_PINK,
|
|
|
|
COLOR_PAL_GREEN_SIGNAL,
|
|
|
|
COLOR_PAL_ORANGE,
|
|
|
|
COLOR_PAL_BLUE,
|
|
|
|
COLOR_PAL_PURPLE,
|
|
|
|
COLOR_PAL_GREEN,
|
|
|
|
COLOR_PAL_GREY_LIGHT,
|
|
|
|
COLOR_PAL_RED,
|
|
|
|
|
|
|
|
COLOR_PAL_ENUM_END
|
|
|
|
} color_palette_E;
|
|
|
|
|
2023-02-19 21:25:45 +00:00
|
|
|
typedef struct {
|
|
|
|
uint8_t alpha;
|
|
|
|
uint8_t red;
|
|
|
|
uint8_t green;
|
|
|
|
uint8_t blue;
|
|
|
|
} color_argb_T;
|
|
|
|
|
2023-02-22 22:34:20 +00:00
|
|
|
extern color_argb_T g_color_palette[COLOR_PAL_ENUM_END];
|
2023-02-22 22:30:32 +00:00
|
|
|
|
2023-02-21 09:19:29 +00:00
|
|
|
color_argb_T color_argb_blend_alpha(color_argb_T background, color_argb_T foreground);
|
|
|
|
|
2023-02-19 21:25:45 +00:00
|
|
|
#endif //NOX_COLOR_H
|