24 #ifndef SAXBOPHONE_COLRCV_MODELS_HSL_H 25 #define SAXBOPHONE_COLRCV_MODELS_HSL_H Used to represent an XYZ colour.
Definition: xyz.h:43
This header file forward-declares (via typedef) all the data types used to represent colours in diffe...
bool colrcv_hsl_s_is_valid(colrcv_hsl_t hsl)
Checks that saturation component of a given colrcv_hsl_t struct is valid.
Definition: hsl.c:36
colrcv_xyz_t colrcv_hsl_to_xyz(colrcv_hsl_t hsl)
Converts a HSL colour to an XYZ colour.
Definition: hsl.c:133
colrcv_lab_t colrcv_hsl_to_lab(colrcv_hsl_t hsl)
Converts a HSL colour to a LAB colour.
Definition: hsl.c:128
colrcv_rgb_t colrcv_hsl_to_rgb(colrcv_hsl_t hsl)
Converts a HSL colour to an RGB colour.
Definition: hsl.c:99
double h
The hue. Should be in range 0 -> 360.
Definition: hsl.h:43
const double COLRCV_HSL_H_MAX_VALUE
Definition: hsl.c:26
bool colrcv_hsl_h_is_valid(colrcv_hsl_t hsl)
Checks that hue component of a given colrcv_hsl_t struct is valid.
Definition: hsl.c:30
const double COLRCV_HSL_L_MAX_VALUE
Definition: hsl.c:28
colrcv_hsv_t colrcv_hsl_to_hsv(colrcv_hsl_t hsl)
Converts a HSL colour to a HSV colour.
Definition: hsl.c:123
const double COLRCV_HSL_S_MAX_VALUE
Definition: hsl.c:27
colrcv_hsl_t colrcv_hsl_clamp_h(colrcv_hsl_t hsl)
Makes the hue channel of a given colrcv_hsl_t struct fit within the 'standard' range for that channel...
Definition: hsl.c:62
colrcv_hsl_t colrcv_hsl_clamp(colrcv_hsl_t hsl)
Makes all of the channels of a given colrcv_hsl_t struct fit within the 'standard' range for that cha...
Definition: hsl.c:57
Used to represent a HSV colour.
Definition: hsv.h:41
colrcv_hsl_t colrcv_hsl_clamp_s(colrcv_hsl_t hsl)
Makes the saturation channel of a given colrcv_hsl_t struct fit within the 'standard' range for that ...
Definition: hsl.c:68
const double COLRCV_HSL_MIN_VALUE
Definition: hsl.c:25
double s
The saturation. Should be in range 0 -> 100.
Definition: hsl.h:45
colrcv_hsl_t colrcv_hsl_clamp_l(colrcv_hsl_t hsl)
Makes the lightnness channel of a given colrcv_hsl_t struct fit within the 'standard' range for that ...
Definition: hsl.c:74
double l
The lightness. Should be in range 0 -> 100.
Definition: hsl.h:47
Used to represent a HSL colour.
Definition: hsl.h:41
bool colrcv_hsl_l_is_valid(colrcv_hsl_t hsl)
Checks that value component of a given colrcv_hsl_t struct is valid.
Definition: hsl.c:42
Used to represent a LAB colour.
Definition: lab.h:41
Used to represent an RGB colour.
Definition: rgb.h:42
bool colrcv_hsl_is_valid(colrcv_hsl_t hsl)
Checks that the components of a given colrcv_hsl_t struct are valid.
Definition: hsl.c:48