Porytiles
Loading...
Searching...
No Matches
porytiles::RgbColor Struct Reference

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)
 

Detailed Description

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.

Member Data Documentation

◆ b

std::uint8_t porytiles::RgbColor::b

Blue channel (0-255)

Definition at line 44 of file text_formatter.hpp.

◆ g

std::uint8_t porytiles::RgbColor::g

Green channel (0-255)

Definition at line 43 of file text_formatter.hpp.

◆ r

std::uint8_t porytiles::RgbColor::r

Red channel (0-255)

Definition at line 42 of file text_formatter.hpp.


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