diff options
author | Mattias Andrée <maandree@kth.se> | 2016-12-17 16:28:23 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-12-17 16:28:23 +0100 |
commit | 40e6ef1f99f78e80af9658b7c600f1f669f6bba3 (patch) | |
tree | a4e43df653b21b4cd888188b960b5ce810b29861 /src/libcolour.c | |
parent | update todo (diff) | |
download | libcolour-40e6ef1f99f78e80af9658b7c600f1f669f6bba3.tar.gz libcolour-40e6ef1f99f78e80af9658b7c600f1f669f6bba3.tar.bz2 libcolour-40e6ef1f99f78e80af9658b7c600f1f669f6bba3.tar.xz |
CIELChuv: measure hue in degrees, but add parameter to change this
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libcolour.c')
-rw-r--r-- | src/libcolour.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcolour.c b/src/libcolour.c index 57f1e80..69014d3 100644 --- a/src/libcolour.c +++ b/src/libcolour.c @@ -121,6 +121,8 @@ int libcolour_proper(libcolour_colour_t* colour) break; case LIBCOLOUR_CIELCHUV: colour->cielchuv.white.model = LIBCOLOUR_CIEXYZ; + if (colour->cielchuv.one_revolution == 0.) + colour->cielchuv.one_revolution = 360.; break; case LIBCOLOUR_RGB: colour->rgb.red.model = LIBCOLOUR_CIEXYY; |