mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-11 22:44:56 +00:00
23 lines
380 B
C
23 lines
380 B
C
|
/* hsv2rgb.h
|
||
|
* Convert Hue Saturation Value to Red Green Blue
|
||
|
*
|
||
|
* Programme de convertion d'une information HSV en RGB
|
||
|
*/
|
||
|
#ifndef HSV2RGB_H
|
||
|
#define HSV2RGB_H
|
||
|
|
||
|
typedef struct {
|
||
|
unsigned char h;
|
||
|
unsigned char s;
|
||
|
unsigned char v;
|
||
|
} hsv_color;
|
||
|
|
||
|
typedef struct {
|
||
|
unsigned char r;
|
||
|
unsigned char g;
|
||
|
unsigned char b;
|
||
|
} rgb_color;
|
||
|
|
||
|
rgb_color hsv2rgb(hsv_color hsv);
|
||
|
|
||
|
#endif
|