summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/ortho60/hsv2rgb.h
blob: 99566c32c07e33b4eec503c11ff138554833cebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 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