|
Terminal++ 4.0.1.23
A C++ library for interacting with ANSI terminal windows
|
Structure representing the 24 greyscale tones of a 256-colour palette. More...
#include <colour.hpp>
Public Member Functions | |
| constexpr | greyscale_colour () noexcept |
| Default constructs a greyscale value with the darkest available grey. | |
| constexpr | greyscale_colour (byte shade) noexcept |
| Constructs a greyscale value from the given shade, which should be in the range 0-23. | |
Public Attributes | |
| byte | shade_ |
Friends | |
| std::size_t | hash_value (greyscale_colour const &col) noexcept |
| Hash function. | |
| constexpr friend auto | operator<=> (greyscale_colour const &lhs, greyscale_colour const &rhs) noexcept=default |
| Comparison operators for greyscale colours. | |
Structure representing the 24 greyscale tones of a 256-colour palette.