1/*
2 * Copyright 2024, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _HSL_H
6#define _HSL_H
7
8
9#include <GraphicsDefs.h>
10
11
12typedef struct hsl_color {
13	float hue, saturation, lightness;
14
15	static	hsl_color	from_rgb(const rgb_color& rgb);
16			rgb_color	to_rgb() const;
17
18private:
19	static	float		hue_to_rgb(float p, float q, float t);
20} hsl_color;
21
22
23#endif // _HSL_H
24