plotpp::Color
Public Functions
Name | |
---|---|
constexpr | Color() =default |
constexpr | Color(uint8_t red, uint8_t green, uint8_t blue) |
constexpr | Color(int red, int green, int blue) |
constexpr | Color(float red, float green, float blue) |
constexpr | Color(double red, double green, double blue) |
constexpr | Color(uint32_t rgb) |
uint8_t | red_ui8() const |
uint8_t | green_ui8() const |
uint8_t | blue_ui8() const |
float | redf() const |
float | greenf() const |
float | bluef() const |
Color & | red(uint8_t red) |
Color & | green(uint8_t green) |
Color & | blue(uint8_t blue) |
std::int32_t | to_int32() const |
std::string | to_hex() const |
Public Functions Documentation
function Color
constexpr Color() =default
function Color
inline constexpr Color(
uint8_t red,
uint8_t green,
uint8_t blue
)
function Color
inline constexpr Color(
int red,
int green,
int blue
)
function Color
inline constexpr Color(
float red,
float green,
float blue
)
function Color
inline constexpr Color(
double red,
double green,
double blue
)
function Color
inline constexpr Color(
uint32_t rgb
)
function red_ui8
inline uint8_t red_ui8() const
function green_ui8
inline uint8_t green_ui8() const
function blue_ui8
inline uint8_t blue_ui8() const
function redf
inline float redf() const
function greenf
inline float greenf() const
function bluef
inline float bluef() const
function red
inline Color & red(
uint8_t red
)
function green
inline Color & green(
uint8_t green
)
function blue
inline Color & blue(
uint8_t blue
)
function to_int32
inline std::int32_t to_int32() const
function to_hex
inline std::string to_hex() const
Updated on 2025-03-02 at 14:13:16 +0100