?????????? ????????? - ??????????????? - /usr/share/doc/imath-devel/html/functions/color.html
???????
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Color Functions — Imath Documentation</title> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/bizstyle.css" type="text/css" /> <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/doctools.js"></script> <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS-MML_HTMLorMML"></script> <script src="../_static/bizstyle.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="Frame Functions" href="frame.html" /> <link rel="prev" title="Box Functions" href="box.html" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" /> <!--[if lt IE 9]> <script src="_static/css3-mediaqueries.js"></script> <![endif]--> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="frame.html" title="Frame Functions" accesskey="N">next</a> |</li> <li class="right" > <a href="box.html" title="Box Functions" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">Imath</a> »</li> <li class="nav-item nav-item-this"><a href="">Color Functions</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="color-functions"> <span id="id1"></span><h1>Color Functions<a class="headerlink" href="#color-functions" title="Permalink to this headline">¶</a></h1> <p>Functions that operate on colors.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathColorAlgo.h></span> </pre></div> </div> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath7hsv2rgbE4Vec3I1TERK4Vec3I1TE"> <span id="_CPPv3I0EN5Imath7hsv2rgbERK4Vec3I1TE"></span><span id="_CPPv2I0EN5Imath7hsv2rgbERK4Vec3I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_color_algo_8h_1a04f904b12c88eee7a9c0b5bb7c438d44"></span><em class="property">constexpr</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath7hsv2rgbE4Vec3I1TERK4Vec3I1TE" title="Imath::hsv2rgb::T">T</a>> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">hsv2rgb</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath7hsv2rgbE4Vec3I1TERK4Vec3I1TE" title="Imath::hsv2rgb::T">T</a>> &<em>hsv</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath7hsv2rgbE4Vec3I1TERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Convert 3-channel hsv to rgb. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath7hsv2rgbE6Color4I1TERK6Color4I1TE"> <span id="_CPPv3I0EN5Imath7hsv2rgbERK6Color4I1TE"></span><span id="_CPPv2I0EN5Imath7hsv2rgbERK6Color4I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_color_algo_8h_1a7e205ce145343b3851da758465f82a83"></span><em class="property">constexpr</em> <a class="reference internal" href="../classes/Color4.html#_CPPv4I0EN5Imath6Color4E" title="Imath::Color4">Color4</a><<a class="reference internal" href="#_CPPv4I0EN5Imath7hsv2rgbE6Color4I1TERK6Color4I1TE" title="Imath::hsv2rgb::T">T</a>> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">hsv2rgb</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Color4.html#_CPPv4I0EN5Imath6Color4E" title="Imath::Color4">Color4</a><<a class="reference internal" href="#_CPPv4I0EN5Imath7hsv2rgbE6Color4I1TERK6Color4I1TE" title="Imath::hsv2rgb::T">T</a>> &<em>hsv</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath7hsv2rgbE6Color4I1TERK6Color4I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Convert 4-channel hsv to rgb (with alpha). </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath7rgb2hsvE6Color4I1TERK6Color4I1TE"> <span id="_CPPv3I0EN5Imath7rgb2hsvERK6Color4I1TE"></span><span id="_CPPv2I0EN5Imath7rgb2hsvERK6Color4I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_color_algo_8h_1a4eaee940a921572c55802a9af809b763"></span><em class="property">constexpr</em> <a class="reference internal" href="../classes/Color4.html#_CPPv4I0EN5Imath6Color4E" title="Imath::Color4">Color4</a><<a class="reference internal" href="#_CPPv4I0EN5Imath7rgb2hsvE6Color4I1TERK6Color4I1TE" title="Imath::rgb2hsv::T">T</a>> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">rgb2hsv</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Color4.html#_CPPv4I0EN5Imath6Color4E" title="Imath::Color4">Color4</a><<a class="reference internal" href="#_CPPv4I0EN5Imath7rgb2hsvE6Color4I1TERK6Color4I1TE" title="Imath::rgb2hsv::T">T</a>> &<em>rgb</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath7rgb2hsvE6Color4I1TERK6Color4I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Convert 4-channel rgb to hsv (with alpha). </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath7rgb2hsvE4Vec3I1TERK4Vec3I1TE"> <span id="_CPPv3I0EN5Imath7rgb2hsvERK4Vec3I1TE"></span><span id="_CPPv2I0EN5Imath7rgb2hsvERK4Vec3I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_color_algo_8h_1a9578cf8d90b415e9db2a37f42875d2b0"></span><em class="property">constexpr</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath7rgb2hsvE4Vec3I1TERK4Vec3I1TE" title="Imath::rgb2hsv::T">T</a>> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">rgb2hsv</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath7rgb2hsvE4Vec3I1TERK4Vec3I1TE" title="Imath::rgb2hsv::T">T</a>> &<em>rgb</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath7rgb2hsvE4Vec3I1TERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Convert 3-channel rgb to hsv. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath10rgb2packedE11PackedColorRK6Color4I1TE"> <span id="_CPPv3I0EN5Imath10rgb2packedERK6Color4I1TE"></span><span id="_CPPv2I0EN5Imath10rgb2packedERK6Color4I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_color_algo_8h_1ace2982fce46064b0ad698b04cd2c4d7b"></span><em class="property">constexpr</em> PackedColor <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">rgb2packed</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Color4.html#_CPPv4I0EN5Imath6Color4E" title="Imath::Color4">Color4</a><<a class="reference internal" href="#_CPPv4I0EN5Imath10rgb2packedE11PackedColorRK6Color4I1TE" title="Imath::rgb2packed::T">T</a>> &<em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath10rgb2packedE11PackedColorRK6Color4I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Convert 4-channel rgb to PackedColor (with alpha) </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath10rgb2packedE11PackedColorRK4Vec3I1TE"> <span id="_CPPv3I0EN5Imath10rgb2packedERK4Vec3I1TE"></span><span id="_CPPv2I0EN5Imath10rgb2packedERK4Vec3I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_color_algo_8h_1a4d8263aa316a60d6f5b39d8999349835"></span><em class="property">constexpr</em> PackedColor <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">rgb2packed</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath10rgb2packedE11PackedColorRK4Vec3I1TE" title="Imath::rgb2packed::T">T</a>> &<em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath10rgb2packedE11PackedColorRK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Convert 3-channel rgb to PackedColor. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath10packed2rgbEv11PackedColorR6Color4I1TE"> <span id="_CPPv3I0EN5Imath10packed2rgbE11PackedColorR6Color4I1TE"></span><span id="_CPPv2I0EN5Imath10packed2rgbE11PackedColorR6Color4I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_color_algo_8h_1a173e5b4f591b4c234487241ba2313f3e"></span>void <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">packed2rgb</code><span class="sig-paren">(</span>PackedColor <em>packed</em>, <a class="reference internal" href="../classes/Color4.html#_CPPv4I0EN5Imath6Color4E" title="Imath::Color4">Color4</a><<a class="reference internal" href="#_CPPv4I0EN5Imath10packed2rgbEv11PackedColorR6Color4I1TE" title="Imath::packed2rgb::T">T</a>> &<em>out</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath10packed2rgbEv11PackedColorR6Color4I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Convert PackedColor to 4-channel rgb (with alpha). </p> <p>Return the result in the <code class="docutils literal notranslate"><span class="pre">out</span></code> parameter. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath10packed2rgbEv11PackedColorR4Vec3I1TE"> <span id="_CPPv3I0EN5Imath10packed2rgbE11PackedColorR4Vec3I1TE"></span><span id="_CPPv2I0EN5Imath10packed2rgbE11PackedColorR4Vec3I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_color_algo_8h_1a632e8689a7b8acac2200e71541d119f4"></span>void <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">packed2rgb</code><span class="sig-paren">(</span>PackedColor <em>packed</em>, <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath10packed2rgbEv11PackedColorR4Vec3I1TE" title="Imath::packed2rgb::T">T</a>> &<em>out</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath10packed2rgbEv11PackedColorR4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Convert PackedColor to 3-channel rgb. </p> <p>Return the result in the <code class="docutils literal notranslate"><span class="pre">out</span></code> parameter. </p> </dd></dl> </div> <div class="clearer"></div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <p class="logo"><a href="../index.html"> <img class="logo" src="../_static/imath-logo-blue.png" alt="Logo"/> </a></p> <h4>Previous topic</h4> <p class="topless"><a href="box.html" title="previous chapter">Box Functions</a></p> <h4>Next topic</h4> <p class="topless"><a href="frame.html" title="next chapter">Frame Functions</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/functions/color.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" /> <input type="submit" value="Go" /> </form> </div> </div> <script>$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="frame.html" title="Frame Functions" >next</a> |</li> <li class="right" > <a href="box.html" title="Box Functions" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">Imath</a> »</li> <li class="nav-item nav-item-this"><a href="">Color Functions</a></li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright 2021, Contributors to the OpenEXR Project. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3. </div> </body> </html>
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0 |
proxy
|
phpinfo
|
???????????