|
Flint Engine
Modular C++20 2D game engine powered by SDL3
|
RGBA color with 8-bit unsigned components. More...
#include <flint/graphics/types/color.h>
Collaboration diagram for Flint::Color:Public Member Functions | |
| constexpr | Color (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) |
| Construct a color from explicit RGBA components. | |
| constexpr bool | operator== (const Color &other) const |
Public Attributes | |
| unsigned char | r |
| unsigned char | g |
| unsigned char | b |
| unsigned char | a |
RGBA color with 8-bit unsigned components.
Component values range from 0 (none) to 255 (full). Alpha defaults to fully opaque (255) when not specified.