diff options
Diffstat (limited to '')
-rw-r--r-- | src/shared/color-util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shared/color-util.h b/src/shared/color-util.h new file mode 100644 index 0000000..a4ae9eb --- /dev/null +++ b/src/shared/color-util.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include <inttypes.h> + +void rgb_to_hsv(double r, double g, double b, + double *ret_h, double *ret_s, double *ret_v); + +void hsv_to_rgb( + double h, double s, double v, + uint8_t* ret_r, uint8_t *ret_g, uint8_t *ret_b); |