kaycxx-term
C++ terminal library
Loading...
Searching...
No Matches
Classes | Functions
rgb_color.hpp File Reference

Defines RGB true-color terminal colors. More...

#include <cstdint>
Include dependency graph for rgb_color.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kaycxx::term::rgb_color
 RGB terminal color. More...
 

Functions

constexpr rgb_color kaycxx::term::rgb (std::uint8_t red, std::uint8_t green, std::uint8_t blue) noexcept
 Creates an RGB terminal color.
 

Detailed Description

Defines RGB true-color terminal colors.

Function Documentation

◆ rgb()

constexpr rgb_color kaycxx::term::rgb ( std::uint8_t  red,
std::uint8_t  green,
std::uint8_t  blue 
)
inlineconstexprnoexcept

Creates an RGB terminal color.

Parameters
redRed channel.
greenGreen channel.
blueBlue channel.
Returns
RGB terminal color.