9#ifndef MAXOS_COMMON_COLOUR_H
10#define MAXOS_COMMON_COLOUR_H
16namespace MaxOS::common {
93 void parse_hex_string(
string hex_string);
94 void parse_ansi_string(
string ansi_string);
107 explicit Colour(
string string);
Stores the red, green, blue and alpha values of a colour. Can be parsed from a hex string,...
ConsoleColour to_console_colour() const
Converts the colour to a console colour.
uint8_t alpha
The amount of alpha 0-255 (0 is visible, 255 is invisible) todo: confirm.
uint8_t green
The amount of green 0-255.
uint8_t blue
The amount of blue 0-255.
uint8_t red
The amount of red 0-255.
ConsoleColour
Enumeration of console colour codes.
const char *const ANSI_COLOURS[]
ANSI Colour Codes.
ANSIColour
Enumeration of ANSI colour codes for foreground and background colours.
Defines a String class for dynamically sized strings with various operations.