ColorSpaceNode.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ColorSpaceNode - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → <a href="TempNode.html">TempNode</a> → </p>
  13. <h1 translate="no">ColorSpaceNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node represents a color space conversion. Meaning it converts
  17. a color value from a source to a target color space.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="ColorSpaceNode" translate="no">new <a href="#ColorSpaceNode">ColorSpaceNode</a><span class="signature">( colorNode : <span class="param-type"><a href="Node.html">Node</a></span>, source : <span class="param-type">string</span>, target : <span class="param-type">string</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new color space node.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>colorNode</strong>
  32. </td>
  33. <td class="description last">
  34. <p>Represents the color to convert.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>source</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The source color space.</p>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td class="name">
  47. <strong>target</strong>
  48. </td>
  49. <td class="description last">
  50. <p>The target color space.</p>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>
  57. <h2 class="subsection-title">Properties</h2>
  58. <div class="member">
  59. <h3 class="name" id="colorNode" translate="no">.<a href="#colorNode">colorNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  60. <div class="description">
  61. <p>Represents the color to convert.</p>
  62. </div>
  63. </div>
  64. <div class="member">
  65. <h3 class="name" id="source" translate="no">.<a href="#source">source</a><span class="type-signature"> : string</span> </h3>
  66. <div class="description">
  67. <p>The source color space.</p>
  68. </div>
  69. </div>
  70. <div class="member">
  71. <h3 class="name" id="target" translate="no">.<a href="#target">target</a><span class="type-signature"> : string</span> </h3>
  72. <div class="description">
  73. <p>The target color space.</p>
  74. </div>
  75. </div>
  76. <h2 class="subsection-title">Methods</h2>
  77. <h3 class="name name-method" id="resolveColorSpace" translate="no">.<a href="#resolveColorSpace">resolveColorSpace</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span>, colorSpace : <span class="param-type">string</span> )</span><span class="type-signature"> : string</span> </h3>
  78. <div class="method">
  79. <div class="description">
  80. <p>This method resolves the constants <code>WORKING_COLOR_SPACE</code> and
  81. <code>OUTPUT_COLOR_SPACE</code> based on the current configuration of the
  82. color management and renderer.</p>
  83. </div>
  84. <table class="params">
  85. <tbody>
  86. <tr>
  87. <td class="name">
  88. <strong>builder</strong>
  89. </td>
  90. <td class="description last">
  91. <p>The current node builder.</p>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td class="name">
  96. <strong>colorSpace</strong>
  97. </td>
  98. <td class="description last">
  99. <p>The color space to resolve.</p>
  100. </td>
  101. </tr>
  102. </tbody>
  103. </table>
  104. <dl class="details">
  105. <dt class="tag-returns"><strong>Returns:</strong> The resolved color space.</dt>
  106. </dl>
  107. </div>
  108. <h2 class="subsection-title">Source</h2>
  109. <p>
  110. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/ColorSpaceNode.js" translate="no" target="_blank" rel="noopener">src/nodes/display/ColorSpaceNode.js</a>
  111. </p>
  112. </article>
  113. </section>
  114. <script src="../scripts/linenumber.js"></script>
  115. <script src="../scripts/page.js"></script>
  116. </body>
  117. </html>
粤ICP备19079148号