|
colrcv
v0.5.0
C Library for converting Colours between different Colour Models
|
This header file defines the data types for representing colours in the HSL model, and functions for manipulating it. More...

Go to the source code of this file.
Data Structures | |
| struct | colrcv_hsl_t |
| Used to represent a HSL colour. More... | |
Functions | |
| bool | colrcv_hsl_h_is_valid (colrcv_hsl_t hsl) |
Checks that hue component of a given colrcv_hsl_t struct is valid. More... | |
| bool | colrcv_hsl_s_is_valid (colrcv_hsl_t hsl) |
Checks that saturation component of a given colrcv_hsl_t struct is valid. More... | |
| bool | colrcv_hsl_l_is_valid (colrcv_hsl_t hsl) |
Checks that value component of a given colrcv_hsl_t struct is valid. More... | |
| bool | colrcv_hsl_is_valid (colrcv_hsl_t hsl) |
Checks that the components of a given colrcv_hsl_t struct are valid. More... | |
| 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 channel. More... | |
| 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. More... | |
| 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 channel. More... | |
| 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 channel. More... | |
| colrcv_rgb_t | colrcv_hsl_to_rgb (colrcv_hsl_t hsl) |
| Converts a HSL colour to an RGB colour. More... | |
| colrcv_hsv_t | colrcv_hsl_to_hsv (colrcv_hsl_t hsl) |
| Converts a HSL colour to a HSV colour. More... | |
| colrcv_lab_t | colrcv_hsl_to_lab (colrcv_hsl_t hsl) |
| Converts a HSL colour to a LAB colour. More... | |
| colrcv_xyz_t | colrcv_hsl_to_xyz (colrcv_hsl_t hsl) |
| Converts a HSL colour to an XYZ colour. More... | |
Variables | |
| const double | COLRCV_HSL_MIN_VALUE |
| const double | COLRCV_HSL_H_MAX_VALUE |
| const double | COLRCV_HSL_S_MAX_VALUE |
| const double | COLRCV_HSL_L_MAX_VALUE |
This header file defines the data types for representing colours in the HSL model, and functions for manipulating it.
v0.1.0 | 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 channel.
v0.4.0 | 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.
v0.4.0 | 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 channel.
v0.4.0 | 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 channel.
v0.4.0 | bool colrcv_hsl_h_is_valid | ( | colrcv_hsl_t | hsl | ) |
Checks that hue component of a given colrcv_hsl_t struct is valid.
true if it is valid false if it is not valid v0.1.0 | bool colrcv_hsl_is_valid | ( | colrcv_hsl_t | hsl | ) |
Checks that the components of a given colrcv_hsl_t struct are valid.
true if it is valid false if it is not valid v0.1.0 | bool colrcv_hsl_l_is_valid | ( | colrcv_hsl_t | hsl | ) |
Checks that value component of a given colrcv_hsl_t struct is valid.
true if it is valid false if it is not valid v0.1.0 | bool colrcv_hsl_s_is_valid | ( | colrcv_hsl_t | hsl | ) |
Checks that saturation component of a given colrcv_hsl_t struct is valid.
true if it is valid false if it is not valid v0.1.0 | colrcv_hsv_t colrcv_hsl_to_hsv | ( | colrcv_hsl_t | hsl | ) |
Converts a HSL colour to a HSV colour.
| hsl | A HSL colour to be converted |
v0.1.0 | colrcv_lab_t colrcv_hsl_to_lab | ( | colrcv_hsl_t | hsl | ) |
Converts a HSL colour to a LAB colour.
| hsl | A HSL colour to be converted |
v0.1.0 | colrcv_rgb_t colrcv_hsl_to_rgb | ( | colrcv_hsl_t | hsl | ) |
Converts a HSL colour to an RGB colour.
| hsl | A HSL colour to be converted |
v0.1.0 | colrcv_xyz_t colrcv_hsl_to_xyz | ( | colrcv_hsl_t | hsl | ) |
Converts a HSL colour to an XYZ colour.
| hsl | A HSL colour to be converted |
v0.1.0 | const double COLRCV_HSL_H_MAX_VALUE |
The maximum value that the h component should have
v0.1.0 | const double COLRCV_HSL_L_MAX_VALUE |
The maximum value that the l component should have
v0.1.0 | const double COLRCV_HSL_MIN_VALUE |
The minimum value that any of the components should have
v0.1.0 | const double COLRCV_HSL_S_MAX_VALUE |
The maximum value that the s component should have
v0.1.0
1.8.11