flying-balls/color.h
Karma Riuk 082acc4451 Added random color generation to the polygons, also made so that the
color of the vector indicating speed is the same as the color of the
polygon, but a little lighter
2023-06-13 13:50:07 +02:00

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