Represents an RGBA color value.
More...
#include <CesiumUtility/Color.h>
|
| | Color (uint8_t r, uint8_t g, uint8_t b, uint8_t a=0xff) |
| | Creates a new Color from the given components.
|
| |
|
uint32_t | toRgba32 () const |
| | Converts this color to a packed 32-bit number in the form 0xAARRGGBB.
|
| |
|
| uint8_t | r |
| | The red component.
|
| |
| uint8_t | g |
| | The green component.
|
| |
| uint8_t | b |
| | The blue component.
|
| |
| uint8_t | a |
| | The alpha component.
|
| |
Represents an RGBA color value.
Definition at line 9 of file Color.h.
◆ Color()
| CesiumUtility::Color::Color |
( |
uint8_t | r, |
|
|
uint8_t | g, |
|
|
uint8_t | b, |
|
|
uint8_t | a = 0xff ) |
Creates a new Color from the given components.
- Parameters
-
| r | The red component. |
| g | The green component. |
| b | The blue component. |
| a | The alpha component. |
| uint8_t CesiumUtility::Color::a |
The alpha component.
Definition at line 17 of file Color.h.
| uint8_t CesiumUtility::Color::b |
The blue component.
Definition at line 15 of file Color.h.
| uint8_t CesiumUtility::Color::g |
The green component.
Definition at line 13 of file Color.h.
| uint8_t CesiumUtility::Color::r |
The red component.
Definition at line 11 of file Color.h.
The documentation for this struct was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/CesiumUtility/include/CesiumUtility/Color.h