|
ZenitUI
Retained-mode C++20 UI framework
|
8-bit-per-channel RGBA color, non-premultiplied. More...
#include <CoreTypes.hpp>
Public Member Functions | |
| Color | withAlpha (float k) const |
Return a copy with the alpha channel scaled by k. | |
| bool | operator== (const Color &o) const |
| bool | operator!= (const Color &o) const |
Public Attributes | |
| uint8_t | r {255} |
| uint8_t | g {255} |
| uint8_t | b {255} |
| uint8_t | a {255} |
8-bit-per-channel RGBA color, non-premultiplied.
|
inline |
Return a copy with the alpha channel scaled by k.
| k | Multiplier in [0, 1], clamped. Multiplies the existing alpha. |