]> git.sesse.net Git - movit/blobdiff - util.h
Make the HSV pickers keep the same luminance no matter what the saturation is. Makes...
[movit] / util.h
diff --git a/util.h b/util.h
index da2bf50b1283a1060020c47f33b2e20c50bd65fc..4834bbdf4a86f4dc6048183f6f74d8b1259e3f10 100644 (file)
--- a/util.h
+++ b/util.h
 // Converts a HSV color to RGB. Assumes h in [0, 2pi> or [-pi, pi>
 void hsv2rgb(float h, float s, float v, float *r, float *g, float *b);
 
+// Converts a HSV color to RGB, but keeps luminance constant
+// (ie. color luminance is as if S=0).
+void hsv2rgb_normalized(float h, float s, float v, float *r, float *g, float *b);
+
 // Column major (same as OpenGL).
 typedef double Matrix3x3[9];