Terminal++ 3.1.0.4
A C++ library for interacting with ANSI terminal windows
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
terminalpp::high_colour Struct Reference

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.
 

Detailed Description

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.


The documentation for this struct was generated from the following file: