#include <Canvas.hh>
|
uint16_t | rgb |
|
struct { |
unsigned int blue:5 |
|
unsigned int green:6 |
|
unsigned int red:5 |
|
}; | |
|
16-bit RGB<5,6,5> color.
Definition at line 49 of file Canvas.hh.
Canvas::color16_t::color16_t |
( |
| ) |
|
|
inline |
Construct default color.
Definition at line 60 of file Canvas.hh.
Canvas::color16_t::color16_t |
( |
uint16_t |
color | ) |
|
|
inline |
Construct color from given 16-bit value.
- Parameters
-
Definition at line 69 of file Canvas.hh.
Canvas::color16_t::color16_t |
( |
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
|
inline |
Construct color from given 8-bit values. Scaled from 8-bit to 5-bits for blue and red, and 6-bits for green.
- Parameters
-
Definition at line 81 of file Canvas.hh.
Canvas::color16_t::operator uint16_t |
( |
| ) |
|
|
inline |
Cast color to 16-bit unsigned integer.
Definition at line 91 of file Canvas.hh.
unsigned int Canvas::color16_t::blue |
unsigned int Canvas::color16_t::green |
unsigned int Canvas::color16_t::red |
uint16_t Canvas::color16_t::rgb |
The documentation for this union was generated from the following file: