|
| Color (const GdkRGBA &color) noexcept |
| Color (const QColor &color) noexcept |
| Color (float r, float g, float b, float a=1.0f) noexcept |
| Color (const std::string &str) |
| Construct a new Color object by parsing the color string.
|
Color & | operator= (const GdkRGBA &color) |
Color & | operator= (const QColor &color) |
Color & | brighten (float val) |
| Brightens the color by the given amount.
|
Color & | brighten_default () |
| Brightens the color by the default amount.
|
Color & | darken (float val) |
| Darkens the color by the given amount.
|
Color & | darken_default () |
| Darkens the color by the default amount.
|
bool | is_same (const Color &other) const |
| Returns whether the color is the same as another.
|
bool | is_bright () const |
| Returns if the color is bright or not.
|
bool | is_very_bright () const |
| Returns if the color is very bright or not.
|
bool | is_very_very_bright () const |
| Returns if the color is very very bright or not.
|
bool | is_very_dark () const |
| Returns if the color is very dark or not.
|
bool | is_very_very_dark () const |
| Returns if the color is very very dark or not.
|
Color | get_opposite () const |
| Gets the opposite color.
|
float | get_brightness () const |
| Gets the brightness of the color.
|
float | get_darkness () const |
| Gets the darkness of the color.
|
Color | morph (const Color &other, float amt) const |
| Morphs from this color to another, depending on the given amount.
|
Color | get_contrast_color () const |
| Returns the contrasting color (variation of black or white) based on if the given color is dark enough or not.
|
GdkRGBA | to_gdk_rgba () const |
GdkRGBA | to_gdk_rgba_with_alpha (float alpha) const |
QColor | to_qcolor () const |
std::string | to_hex () const |
| Converts the color to a hex string.
|
Definition at line 23 of file color.h.