24 #ifndef SAXBOPHONE_COLRCV_MODELS_HSV_H 25 #define SAXBOPHONE_COLRCV_MODELS_HSV_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...
colrcv_lab_t colrcv_hsv_to_lab(colrcv_hsv_t hsv)
Converts a HSV colour to a LAB colour.
Definition: hsv.c:150
bool colrcv_hsv_s_is_valid(colrcv_hsv_t hsv)
Checks that saturation component of a given colrcv_hsv_t struct is valid.
Definition: hsv.c:36
colrcv_hsv_t colrcv_hsv_clamp(colrcv_hsv_t hsv)
Makes all of the channels of a given colrcv_hsv_t struct fit within the 'standard' range for that cha...
Definition: hsv.c:57
bool colrcv_hsv_is_valid(colrcv_hsv_t hsv)
Checks that the components of a given colrcv_hsv_t struct are valid.
Definition: hsv.c:48
colrcv_hsv_t colrcv_hsv_clamp_h(colrcv_hsv_t hsv)
Makes the hue channel of a given colrcv_hsv_t struct fit within the 'standard' range for that channel...
Definition: hsv.c:62
const double COLRCV_HSV_MIN_VALUE
Definition: hsv.c:25
double s
The saturation. Should be in range 0 -> 100.
Definition: hsv.h:45
const double COLRCV_HSV_S_MAX_VALUE
Definition: hsv.c:27
double h
The hue. Should be in range 0 -> 360.
Definition: hsv.h:43
colrcv_hsl_t colrcv_hsv_to_hsl(colrcv_hsv_t hsv)
Converts a HSV colour to a HSL colour.
Definition: hsv.c:145
colrcv_hsv_t colrcv_hsv_clamp_v(colrcv_hsv_t hsv)
Makes the value channel of a given colrcv_hsv_t struct fit within the 'standard' range for that chann...
Definition: hsv.c:74
bool colrcv_hsv_h_is_valid(colrcv_hsv_t hsv)
Checks that hue component of a given colrcv_hsv_t struct is valid.
Definition: hsv.c:30
colrcv_hsv_t colrcv_hsv_clamp_s(colrcv_hsv_t hsv)
Makes the saturation channel of a given colrcv_hsv_t struct fit within the 'standard' range for that ...
Definition: hsv.c:68
colrcv_rgb_t colrcv_hsv_to_rgb(colrcv_hsv_t hsv)
Converts a HSV colour to an RGB colour.
Definition: hsv.c:81
Used to represent a HSV colour.
Definition: hsv.h:41
bool colrcv_hsv_v_is_valid(colrcv_hsv_t hsv)
Checks that value component of a given colrcv_hsv_t struct is valid.
Definition: hsv.c:42
const double COLRCV_HSV_V_MAX_VALUE
Definition: hsv.c:28
const double COLRCV_HSV_H_MAX_VALUE
Definition: hsv.c:26
Used to represent a HSL colour.
Definition: hsl.h:41
double v
The value. Should be in range 0 -> 100.
Definition: hsv.h:47
Used to represent a LAB colour.
Definition: lab.h:41
Used to represent an RGB colour.
Definition: rgb.h:42
colrcv_xyz_t colrcv_hsv_to_xyz(colrcv_hsv_t hsv)
Converts a HSV colour to an XYZ colour.
Definition: hsv.c:155