#include <color.hpp>
|
| constexpr | RGB () |
| | Default constructor initializes to black.
|
| |
| constexpr | RGB (std::uint8_t red, std::uint8_t green, std::uint8_t blue) |
| | Construct RGB color from components.
|
| |
| constexpr auto | operator== (const RGB &other) const noexcept -> bool=default |
| | Equality comparison.
|
| |
| constexpr auto | to_grayscale () const noexcept -> std::uint8_t |
| | Convert to grayscale using standard luminance formula.
|
| |
|
| std::uint8_t | b |
| | Blue component (0-255)
|
| |
| std::uint8_t | g |
| | Green component (0-255)
|
| |
| std::uint8_t | r |
| | Red component (0-255)
|
| |
◆ RGB() [1/2]
| constexpr epaper::RGB::RGB |
( |
| ) |
|
|
inlineconstexpr |
◆ RGB() [2/2]
| constexpr epaper::RGB::RGB |
( |
std::uint8_t |
red, |
|
|
std::uint8_t |
green, |
|
|
std::uint8_t |
blue |
|
) |
| |
|
inlineconstexpr |
Construct RGB color from components.
- Parameters
-
| red | Red component (0-255) |
| green | Green component (0-255) |
| blue | Blue component (0-255) |
◆ operator==()
| constexpr auto epaper::RGB::operator== |
( |
const RGB & |
other | ) |
const -> bool=default |
|
constexprdefaultnoexcept |
◆ to_grayscale()
| constexpr auto epaper::RGB::to_grayscale |
( |
| ) |
const -> std::uint8_t |
|
inlineconstexprnoexcept |
| std::uint8_t epaper::RGB::b |
| std::uint8_t epaper::RGB::g |
| std::uint8_t epaper::RGB::r |
The documentation for this struct was generated from the following file: