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