summaryrefslogtreecommitdiffstats
path: root/src/shared/color-util.h
blob: a4ae9eba09f08e7f29e2336b4fdc4b4327a46e4f (plain)
1
2
3
4
5
6
7
8
9
10
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);