Terminal++ 3.1.0.4
A C++ library for interacting with ANSI terminal windows
|
Structure representing the central 216 colours of a 256-colour palette, where each colour channel is represented by a number in the range 0..5. More...
#include <colour.hpp>
Public Member Functions | |
constexpr | high_colour () noexcept |
Default constructs a high-colour with the value of pure black. | |
constexpr | high_colour (byte red, byte green, byte blue) noexcept |
Constructs a high_colour from the passed-in RGB values, each of which should be in the range 0-5. | |
Public Attributes | |
byte | value_ |
Friends | |
std::size_t | hash_value (high_colour const &col) noexcept |
Hash function. | |
constexpr friend auto | operator<=> (high_colour const &lhs, high_colour const &rhs) noexcept=default |
Comparison operators for high colours. | |
Structure representing the central 216 colours of a 256-colour palette, where each colour channel is represented by a number in the range 0..5.