|
colrcv
v0.5.0
C Library for converting Colours between different Colour Models
|
This is the main header file. More...
#include <stdbool.h>#include <stdint.h>

Go to the source code of this file.
Data Structures | |
| struct | colrcv_version_t |
| Used to represent a version of colrcv. More... | |
Typedefs | |
| typedef struct colrcv_version_t | colrcv_version_t |
| Used to represent a version of colrcv. More... | |
Functions | |
| bool | colrcv_range_valid (double min, double val, double max) |
| A utility function for checking that a given value is in a given range. More... | |
| double | colrcv_min (double a, double b) |
| Get the smallest of two given values. More... | |
| double | colrcv_max (double a, double b) |
| Get the largest of two given values. More... | |
| double | colrcv_clamp (double value, double min, double max) |
| Clamp a given value to be within a given range. More... | |
Variables | |
| const colrcv_version_t | COLRCV_VERSION |
| Stores the current version of colrcv. More... | |
This is the main header file.
v0.1.0 | typedef struct colrcv_version_t colrcv_version_t |
Used to represent a version of colrcv.
Versions are of the format <MAJOR.MINOR.patch>
v0.1.0 | double colrcv_clamp | ( | double | value, |
| double | min, | ||
| double | max | ||
| ) |
Clamp a given value to be within a given range.
| value | The value to clamp |
| min | The minimum value |
| max | The maximum value |
value, guaranteed to be within the range min -> max v0.4.0 | double colrcv_max | ( | double | a, |
| double | b | ||
| ) |
Get the largest of two given values.
v0.1.0 | double colrcv_min | ( | double | a, |
| double | b | ||
| ) |
Get the smallest of two given values.
v0.1.0 | bool colrcv_range_valid | ( | double | min, |
| double | val, | ||
| double | max | ||
| ) |
A utility function for checking that a given value is in a given range.
Checks that the condition min <= val <= max is true
true if the condition is satisfied false if the condition is not satisfied v0.1.0 | const colrcv_version_t COLRCV_VERSION |
Stores the current version of colrcv.
v0.1.0
1.8.11