RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_colorpicker_hsva_t Struct Reference

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

Detailed Description

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.

Field Documentation

◆ h

uint16_t rmgui_colorpicker_hsva_t::h

◆ s

uint16_t rmgui_colorpicker_hsva_t::s

◆ v

uint16_t rmgui_colorpicker_hsva_t::v

◆ a

uint8_t rmgui_colorpicker_hsva_t::a

The documentation for this struct was generated from the following file: