#ifndef COLORS_H #define COLORS_H #include #include typedef enum color_mode { MODE_NONE, MODE_ANSI16, MODE_ANSI256, MODE_TRUECOLOR }color_mode; typedef enum NamedColor { Black, Red, Green, Yellow, Blue, Magenta, Cyan, White, BrightBlack, BrightRed, BrightGreen, BrightYellow, BrightBlue, BrightMagenta, BrightCyan, BrightWhite, }NamedColor; typedef struct{ int red; int green; int blue; }rgbcolor; typedef struct colorconfig { enum color_mode mode; bool has_solid_color; rgbcolor solid_color; bool rainbow_enabled; //flag int saturation; //default 100 int brightness; //default 50 char **rainbow_cache; //array of rgb_color malloced size_t rainbow_count; }colorconfig; #endif