mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-21 05:04:46 -07:00
28 lines
337 B
C
28 lines
337 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct RgbColor {
|
|
uint8_t r;
|
|
uint8_t g;
|
|
uint8_t b;
|
|
} RgbColor;
|
|
|
|
typedef struct HsvColor {
|
|
uint8_t h;
|
|
uint8_t s;
|
|
uint8_t v;
|
|
} HsvColor;
|
|
|
|
RgbColor hsv2rgb(HsvColor hsv);
|
|
|
|
HsvColor rgb2hsv(RgbColor rgb);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|