// // color.h // ncurses-wrapper // // Created by Sam Jaffe on 7/23/24. // #include namespace curses { struct Color { // https://www.rapidtables.com/web/color/RGB_Color.html static Color const DEFAULT; static Color const BLACK; static Color const RED; static Color const GREEN; static Color const YELLOW; static Color const BLUE; static Color const MAGENTA; static Color const CYAN; static Color const WHITE; auto operator<=>(Color const &) const = default; static Color from_code(short code); short to_code() const; short red; short green; short blue; }; struct ColorPair { auto operator<=>(ColorPair const &) const = default; int to_code() const; Color foreground; Color background; }; }