2021-02-21 23:22:01 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
typedef struct rgba_type {
|
2021-12-30 18:06:04 +01:00
|
|
|
int16_t r = 0;
|
|
|
|
int16_t g = 0;
|
|
|
|
int16_t b = 0;
|
|
|
|
int16_t a = 0;
|
|
|
|
} rgba;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
double r; // a fraction between 0 and 1
|
|
|
|
double g; // a fraction between 0 and 1
|
|
|
|
double b; // a fraction between 0 and 1
|
|
|
|
} rgb;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
double h; // angle in degrees
|
|
|
|
double s; // a fraction between 0 and 1
|
|
|
|
double v; // a fraction between 0 and 1
|
|
|
|
} hsv;
|