summaryrefslogtreecommitdiffstats
path: root/users/konstantin/rgb.h
blob: aed855aa05ebe4e02cf269361c782e754690ae9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "quantum.h"

typedef struct {
    uint16_t h;  // 0–360
    uint8_t  s;  // 0–255
    uint8_t  v;  // 0–255
} hsv_t;

typedef struct {
    uint8_t r;  // 0–255
    uint8_t g;  // 0–255
    uint8_t b;  // 0–255
} rgb_t;

extern const hsv_t GODSPEED_BLUE;
extern const hsv_t GODSPEED_YELLOW;