Struct Color
Defined in File color.hpp
Struct Documentation
-
struct Color
Structure to describe an RGB color.
Public Functions
-
inline Color()
Creates a color object with zero for the red, green, blue, and alpha channels.
-
inline Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a)
Creates a color from the given red, green, blue, and alpha channel values.
Each parameter should be between 0 and 255.
-
inline Color(uint8_t r, uint8_t g, uint8_t b)
Creates a color from the given red, green, and blue values.
This sets the alpha channel to “255”. Each parameter should be between 0 and 255.
-
inline Color()