|
Porytiles
|
RGB color representation for extracting color components from Style values. More...
#include <text_formatter.hpp>
Public Attributes | |
| std::uint8_t | r |
| Red channel (0-255) | |
| std::uint8_t | g |
| Green channel (0-255) | |
| std::uint8_t | b |
| Blue channel (0-255) | |
RGB color representation for extracting color components from Style values.
RgbColor holds the red, green, and blue components of a color extracted from a Style value in RGB mode. This struct is returned by fg_rgb() and bg_rgb() to provide convenient access to individual color channels.
Definition at line 41 of file text_formatter.hpp.
| std::uint8_t porytiles::RgbColor::b |
Blue channel (0-255)
Definition at line 44 of file text_formatter.hpp.
| std::uint8_t porytiles::RgbColor::g |
Green channel (0-255)
Definition at line 43 of file text_formatter.hpp.
| std::uint8_t porytiles::RgbColor::r |
Red channel (0-255)
Definition at line 42 of file text_formatter.hpp.