diff options
author | Mattias Andrée <maandree@kth.se> | 2019-10-10 12:11:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-10-10 12:11:54 +0200 |
commit | a9a38b5d18bddcc25cb616275cb163afe3c1ed5e (patch) | |
tree | 8a447aeeeee04df335c48b77e9d406a301cb0f81 /libred_get_colour.3 | |
parent | Reference radharc (diff) | |
download | libred-a9a38b5d18bddcc25cb616275cb163afe3c1ed5e.tar.gz libred-a9a38b5d18bddcc25cb616275cb163afe3c1ed5e.tar.bz2 libred-a9a38b5d18bddcc25cb616275cb163afe3c1ed5e.tar.xz |
More documentation1.0.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libred_get_colour.3 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libred_get_colour.3 b/libred_get_colour.3 index d169a60..afd0a7f 100644 --- a/libred_get_colour.3 +++ b/libred_get_colour.3 @@ -33,6 +33,22 @@ and all will be 1.0 if .I temp is 6500. +.PP +libred has a table of colour temperature values, the +.BR libred_get_colour () +function interpolates values that are missing. If you +don't want any interpolation the +.I temp +parameter can be specified in one of the following ways: +.TP +floor +.I (temp - LIBRED_LOWEST_TEMPERATURE) / LIBRED_DELTA_TEMPERATURE * LIBRED_DELTA_TEMPERATURE + LIBRED_LOWEST_TEMPERATURE +.TP +ceiling +.I (temp - LIBRED_LOWEST_TEMPERATURE + LIBRED_DELTA_TEMPERATURE - 1) / LIBRED_DELTA_TEMPERATURE * LIBRED_DELTA_TEMPERATURE + LIBRED_LOWEST_TEMPERATURE +.TP +round to nearest +.I (temp - LIBRED_LOWEST_TEMPERATURE + LIBRED_DELTA_TEMPERATURE / 2) / LIBRED_DELTA_TEMPERATURE * LIBRED_DELTA_TEMPERATURE + LIBRED_LOWEST_TEMPERATURE .SH RETURN VALUE Upon successful completion, the .BR libred_get_colour () |