|
| static Color | FromRGB (Uint8 r, Uint8 g, Uint8 b, Uint8 a=255) |
| | Get Color From RGB Values. More...
|
| |
| static Color | FromHSL (float h, float s, float l, float a=1.0F) |
| | Get Color From HSL Values. More...
|
| |
| static Color | FromHSV (float h, float s, float v, float a=1.0F) |
| | Get Color From HSV Values. More...
|
| |
| static Color | FromHex (Uint32 hex) |
| | Get Color From Hex RGB Value, alpha value is necessary. More...
|
| |
| static Color | FromHex (const std::string &hex) |
| | Get Color From Hex RGB String, alpha value is necessary. More...
|
| |
| static Color | FromName (const Util::Colors &name) |
| | Get Color From name within Util::Colors. More...
|
| |
A class representing a color.
This class is an extend of glm::vec4. It provides functionalities to convert from and to SDL_Color format.
| std::string Util::Color::ToString |
( |
| ) |
const |
|
inline |
Converts the color to a string representation.
This method returns a string representation of the color in the format "Color(r,g,b,a)". The values r, g, b, and a represent the red, green, blue, and alpha components of the color, respectively.
- Returns
- A string representation of the color.