082acc4451
color of the vector indicating speed is the same as the color of the polygon, but a little lighter
18 lines
240 B
C
18 lines
240 B
C
#ifndef COLOR_H_INCLUDED
|
|
#define COLOR_H_INCLUDED
|
|
|
|
#include <cmath>
|
|
|
|
struct color_t {
|
|
double red, green, blue;
|
|
};
|
|
|
|
struct hsv_t {
|
|
double hue, sat, val;
|
|
};
|
|
|
|
extern hsv_t rgb2hsv(color_t in);
|
|
extern color_t hsv2rgb(hsv_t in);
|
|
|
|
#endif
|