|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
Hue is tenths of a degree [0,3599], S/V tenths of a percent [0,1000]. More...
#include <colorpicker.h>
Data Fields | |
| uint16_t | h |
| uint16_t | s |
| uint16_t | v |
| uint8_t | a |
Hue is tenths of a degree [0,3599], S/V tenths of a percent [0,1000].
Conversion is gamma-agnostic: bytes are encoded channels, not linear light. Integer division rounds nearest (ties away from zero). RGB -> HSV -> RGB differs by at most ONE byte per RGB channel; alpha is exact. Achromatic RGB has hue zero. HSV -> RGB -> HSV need not preserve hue on greys/black.
| uint16_t rmgui_colorpicker_hsva_t::h |
| uint16_t rmgui_colorpicker_hsva_t::s |
| uint16_t rmgui_colorpicker_hsva_t::v |
| uint8_t rmgui_colorpicker_hsva_t::a |