Color
#include <Style.hpp>Represents an RGB color with optional transparency.
Colors are 24-bit RGB, allowing any of 16 million colors. Can also be marked as transparent to use the terminal’s default background.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
uint8_t | r | Red channel (0-255) |
uint8_t | g | Green channel (0-255) |
uint8_t | b | Blue channel (0-255) |
bool | transparent | If true, this color uses the terminal’s default. |
uint8_t r = 255Red channel (0-255)
uint8_t g = 255Green channel (0-255)
uint8_t b = 255Blue channel (0-255)
transparent
Section titled “transparent”bool transparent = falseIf true, this color uses the terminal’s default.
Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
Color | clear static inline | Creates a transparent color that uses the terminal’s default. |
static inline
static inline Color clear()Creates a transparent color that uses the terminal’s default.
Returns
Section titled “Returns”A transparent Color