From bfd8db0098413474514eab4dfebeb0803ad94fc4 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 30 Aug 2020 12:17:33 +0200 Subject: Dimming works --- color.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 color.h (limited to 'color.h') diff --git a/color.h b/color.h new file mode 100644 index 0000000..07f46d3 --- /dev/null +++ b/color.h @@ -0,0 +1,14 @@ +#ifndef __COLOR_H__ +#define __COLOR_H__ + +struct hsvf { + float h, s, v; +}; + +struct rgbf { + float r, g, b; +}; + +void hsv_to_rgb(struct hsvf *hsv_in, struct rgbf *rgb_out); + +#endif /* __COLOR_H__ */ -- cgit