RGBA color with 8-bit unsigned components.
More...
#include <flint/graphics/types/color.h>
|
| 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 |
| |
|
| 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.
Definition at line 13 of file color.h.
◆ Color() [1/2]
◆ Color() [2/2]
| Flint::Color::Color |
( |
unsigned char | r, |
|
|
unsigned char | g, |
|
|
unsigned char | b, |
|
|
unsigned char | a = 255 ) |
|
inlineconstexpr |
Construct a color from explicit RGBA components.
- Parameters
-
| r | Red channel [0, 255]. |
| g | Green channel [0, 255]. |
| b | Blue channel [0, 255]. |
| a | Alpha channel [0, 255] (255 = fully opaque). |
Definition at line 31 of file color.h.
◆ operator==()
| bool Flint::Color::operator== |
( |
const Color & | other | ) |
const |
|
inlineconstexpr |
| unsigned char Flint::Color::a |
| unsigned char Flint::Color::b |
| unsigned char Flint::Color::g |
| unsigned char Flint::Color::r |
The documentation for this struct was generated from the following file:
- include/flint/graphics/types/color.h