From fd5651a159da880b0c378ae9d2a2b4ac1c0614b3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 11 Mar 2014 20:20:07 -0400 Subject: Refactor hue comparator into color.c. --- color.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'color.h') diff --git a/color.h b/color.h index 6ce5168..6fec82d 100644 --- a/color.h +++ b/color.h @@ -15,6 +15,7 @@ #include "kd-forest.h" #include +// 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 -- cgit v1.2.3