Sista v3.0.0-alpha.1
Sista is a C++ lightweight OS-agnostic library for terminal animations and videogames
|
Represents an RGB color with red, green, and blue components in True Color (24-bit). More...
#include <ansi.hpp>
Public Member Functions | |
RGBColor () | |
Default constructor initializing color to black (0,0,0). | |
RGBColor (unsigned char, unsigned char, unsigned char) | |
Parameterized constructor. | |
Public Attributes | |
unsigned char | red |
unsigned char | green |
unsigned char | blue |
Represents an RGB color with red, green, and blue components in True Color (24-bit).
This struct holds three numbers in (0-255) representing the red, green, and blue components of a color. It provides constructors for default and parameterized initialization. Default values are set to 0.
sista::RGBColor::RGBColor | ( | ) |
Default constructor initializing color to black (0,0,0).
Blue component (0-255)
sista::RGBColor::RGBColor | ( | unsigned char | red, |
unsigned char | green, | ||
unsigned char | blue | ||
) |
Parameterized constructor.
red | The red component (0-255). |
green | The green component (0-255). |
blue | The blue component (0-255). |
unsigned char sista::RGBColor::blue |
Green component (0-255)
unsigned char sista::RGBColor::green |
Red component (0-255)
unsigned char sista::RGBColor::red |