|
psychic-ui 0.0.0
|
#include <Color.hpp>
Public Member Functions | |
| Color (const psychic_color::Color &color) | |
| constexpr std::uint32_t | argb () const |
| constexpr std::uint8_t | alpha () const |
| constexpr Color | withAlpha (std::uint8_t alpha) const |
| constexpr Color | over (const Color &below) const |
| constexpr bool | operator== (const Color &) const =default |
Static Public Member Functions | |
| static constexpr Color | fromARGB (std::uint32_t argb) |
A 32 bits ARGB color. A bare integer doesn't convert: say what it holds with rgb(0xFF0000) (opaque) or argb(0x80FF0000). A psychic-color color (RGB, HSB, ...) converts to its opaque Color.
|
inline |
From a psychic-color color, opaque
|
inlinenodiscardconstexpr |
This color painted over another (source over): what shows where a translucent fill lies on below
|
inlinenodiscardconstexpr |
The same color with another alpha, 0 (transparent) to 255 (opaque)