Public Member Functions | |
| constexpr | Color (float r, float g, float b) |
| constexpr | Color (float r, float g, float b, float a) |
| Color (Vector4 v) | |
| std::string | str () const |
| Color | RGBMultiplied (float m) |
| Color | RGBMultiplied (Color m) |
Static Public Member Functions | |
| static Color | HSVToRGB (float H, float S, float V, bool hdr=true) |
| static Color | Lerp (Color a, Color b, float t) |
Public Attributes | ||
| union { | ||
| struct { | ||
| float r | ||
| float g | ||
| float b | ||
| float a | ||
| } | ||
| float data [4] {0.f, 0.f, 0.f, 1.f} | ||
| }; | ||
Static Public Attributes | |
| static const Color | black |
| static const Color | red |
| static const Color | green |
| static const Color | blue |
| static const Color | white |
| static const Color | orange |
| static const Color | yellow |
| static const Color | cyan |
| static const Color | magenta |
Friends | |
| bool | operator== (const Color &lhs, const Color &rhs) |
| bool | operator!= (const Color &lhs, const Color &rhs) |