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 short int, unsigned short int, unsigned short int) | |
Parameterized constructor. | |
Public Attributes | |
unsigned short int | red |
unsigned short int | green |
unsigned short int | blue |
Represents an RGB color with red, green, and blue components in True Color (24-bit).
This struct holds three unsigned short integers 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 short int | red, |
unsigned short int | green, | ||
unsigned short int | blue | ||
) |
Parameterized constructor.
red | The red component (0-255). |
green | The green component (0-255). |
blue | The blue component (0-255). |
unsigned short int sista::RGBColor::blue |
Green component (0-255)
unsigned short int sista::RGBColor::green |
Red component (0-255)
unsigned short int sista::RGBColor::red |