diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-03-11 20:20:07 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-03-11 20:20:39 -0400 |
commit | fd5651a159da880b0c378ae9d2a2b4ac1c0614b3 (patch) | |
tree | be73e0434fa425161fa4d95b3fad304453147247 /color.h | |
parent | d7391436ff96ff51e2417dc7edcf13ccb8300c30 (diff) | |
download | kd-forest-fd5651a159da880b0c378ae9d2a2b4ac1c0614b3.tar.xz |
Refactor hue comparator into color.c.
Diffstat (limited to 'color.h')
-rw-r--r-- | color.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -15,6 +15,7 @@ #include "kd-forest.h" #include <stdint.h> +// Unpack a color into 8-bit RGB values void color_unpack(uint8_t pixel[3], uint32_t color); // Use RGB coordinates @@ -24,4 +25,7 @@ void color_set_Lab(double coords[3], uint32_t color); // Use CIE L*u*v* coordinates void color_set_Luv(double coords[3], uint32_t color); +// For sorting by hue +int color_comparator(const void *a, const void *b); + #endif // COLOR_H |