aboutsummaryrefslogtreecommitdiffstats
path: root/users/konstantin/rgb.h
blob: e296cf12e7ca6e01e5770c1b967f582a52e2c298 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;