The Pixel module provides shared types and drawing primitives for software framebuffers and display-backed surfaces.
More...
|
| file | color.h |
| | RGBA color type and helpers.
|
| |
The Pixel module provides shared types and drawing primitives for software framebuffers and display-backed surfaces.
◆ PIX_COLOR_RGBA
| #define PIX_COLOR_RGBA |
( |
|
r, |
|
|
|
g, |
|
|
|
b, |
|
|
|
a |
|
) |
| |
Value: ((uint32_t)(uint8_t)(g) << 16) | \
((uint32_t)(uint8_t)(b) << 8) | \
(uint32_t)(uint8_t)(a)))
uint32_t pix_color_t
Color value type for pixel operations.
Construct a pix_color_t from separate R/G/B/A components.
Definition at line 38 of file color.h.
◆ pix_color_t
Color value type for pixel operations.
Encoded as 0xRRGGBBAA (red in the most-significant byte, alpha in the least-significant byte). This is independent of any particular storage layout (e.g. a bitmap's own pixel format) - it's how a single color is passed around, not how a buffer of pixels is packed in memory.
Definition at line 17 of file color.h.