<ahref="a01350.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> </div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> </div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment">// Dependency:</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="preprocessor">#include "../glm.hpp"</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> </div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="preprocessor">#ifndef GLM_ENABLE_EXPERIMENTAL</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="preprocessor"># error "GLM: GLM_GTX_color_space is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> </div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor">#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)</span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="preprocessor"># pragma message("GLM: GLM_GTX_color_space extension included")</span></div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> </div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="keyword">namespace </span><aclass="code"href="a00793.html">glm</a></div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> {</div><divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> </div><divclass="line"><aname="l00033"></a><spanclass="lineno"> 33</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> T, qualifier Q></div><divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span>  GLM_FUNC_DECL vec<3, T, Q><aclass="code"href="a00729.html#ga5f9193be46f45f0655c05a0cdca006db">rgbColor</a>(</div><divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span>  vec<3, T, Q><spanclass="keyword">const</span>& hsvValue);</div><divclass="line"><aname="l00036"></a><spanclass="lineno"> 36</span> </div><divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> T, qualifier Q></div><divclass="line"><aname="l00040"></a><spanclass="lineno"> 40</span>  GLM_FUNC_DECL vec<3, T, Q><aclass="code"href="a00729.html#ga789802bec2d4fe0f9741c731b4a8a7d8">hsvColor</a>(</div><divclass="line"><aname="l00041"></a><spanclass="lineno"> 41</span>  vec<3, T, Q><spanclass="keyword">const</span>& rgbValue);</div><divclass="line"><aname="l00042"></a><spanclass="lineno"> 42</span> </div><divclass="line"><aname="l00045"></a><spanclass="lineno"> 45</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> T></div><divclass="line"><aname="l00046"></a><spanclass="lineno"> 46</span>  GLM_FUNC_DECL mat<4, 4, T, defaultp><aclass="code"href="a00729.html#gaba0eacee0736dae860e9371cc1ae4785">saturation</a>(</div><divclass="line"><aname="l00047"></a><spanclass="lineno"> 47</span>  T <spanclass="keyword
<divclass="ttc"id="a00729_html_ga5f9193be46f45f0655c05a0cdca006db"><divclass="ttname"><ahref="a00729.html#ga5f9193be46f45f0655c05a0cdca006db">glm::rgbColor</a></div><divclass="ttdeci">GLM_FUNC_DECL vec< 3, T, Q > rgbColor(vec< 3, T, Q > const &hsvValue)</div><divclass="ttdoc">Converts a color from HSV color space to its color in RGB color space. </div></div>
<divclass="ttc"id="a00729_html_ga789802bec2d4fe0f9741c731b4a8a7d8"><divclass="ttname"><ahref="a00729.html#ga789802bec2d4fe0f9741c731b4a8a7d8">glm::hsvColor</a></div><divclass="ttdeci">GLM_FUNC_DECL vec< 3, T, Q > hsvColor(vec< 3, T, Q > const &rgbValue)</div><divclass="ttdoc">Converts a color from RGB color space to its color in HSV color space. </div></div>
<divclass="ttc"id="a00729_html_gaba0eacee0736dae860e9371cc1ae4785"><divclass="ttname"><ahref="a00729.html#gaba0eacee0736dae860e9371cc1ae4785">glm::saturation</a></div><divclass="ttdeci">GLM_FUNC_DECL vec< 4, T, Q > saturation(T const s, vec< 4, T, Q > const &color)</div><divclass="ttdoc">Modify the saturation of a color. </div></div>
<divclass="ttc"id="a00729_html_gad028e0a4f1a9c812b39439b746295b34"><divclass="ttname"><ahref="a00729.html#gad028e0a4f1a9c812b39439b746295b34">glm::luminosity</a></div><divclass="ttdeci">GLM_FUNC_DECL T luminosity(vec< 3, T, Q > const &color)</div><divclass="ttdoc">Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">