2019-02-11 21:41:51 +00:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "quantum.h"
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2019-02-16 14:26:14 +00:00
|
|
|
|
uint16_t h; // 0–360
|
|
|
|
|
uint8_t s; // 0–255
|
|
|
|
|
uint8_t v; // 0–255
|
2019-02-11 21:41:51 +00:00
|
|
|
|
} hsv_t;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2019-02-16 14:26:14 +00:00
|
|
|
|
uint8_t r; // 0–255
|
|
|
|
|
uint8_t g; // 0–255
|
|
|
|
|
uint8_t b; // 0–255
|
2019-02-11 21:41:51 +00:00
|
|
|
|
} rgb_t;
|
|
|
|
|
|
|
|
|
|
extern const hsv_t GODSPEED_BLUE;
|
2019-02-18 02:16:21 +00:00
|
|
|
|
extern const hsv_t GODSPEED_YELLOW;
|