38 #ifndef GLM_GTX_color_space
39 #define GLM_GTX_color_space
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_color_space extension included")
55 template <
typename T, precision P>
57 detail::tvec3<T, P>
const & hsvValue);
61 template <
typename T, precision P>
63 detail::tvec3<T, P>
const & rgbValue);
67 template <
typename T, precision P>
73 template <
typename T, precision P>
76 detail::tvec3<T, P>
const & color);
80 template <
typename T, precision P>
83 detail::tvec4<T, P>
const & color);
87 template <
typename T, precision P>
89 detail::tvec3<T, P>
const & color);
94 #include "color_space.inl"
96 #endif//GLM_GTX_color_space
detail::tvec3< T, P > hsvColor(detail::tvec3< T, P > const &rgbValue)
Converts a color from RGB color space to its color in HSV color space.
detail::tmat4x4< T, P > saturation(T const s)
Build a saturation matrix.
detail::tvec3< T, P > rgbColor(detail::tvec3< T, P > const &hsvValue)
Converts a color from HSV color space to its color in RGB color space.
T luminosity(detail::tvec3< T, P > const &color)
Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals.