module-ColorSpaces.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ColorSpaces - 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. <h1 translate="no">ColorSpaces</h1>
  13. <section>
  14. <header>
  15. </header>
  16. <article>
  17. <div class="container-overview">
  18. </div>
  19. <h2 class="subsection-title">Properties</h2>
  20. <div class="member">
  21. <h3 class="name" id=".DisplayP3ColorSpace" translate="no">.<a href="#.DisplayP3ColorSpace">DisplayP3ColorSpace</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  22. <div class="description">
  23. <p>Display-P3 color space.</p>
  24. </div>
  25. </div>
  26. <div class="member">
  27. <h3 class="name" id=".DisplayP3ColorSpaceImpl" translate="no">.<a href="#.DisplayP3ColorSpaceImpl">DisplayP3ColorSpaceImpl</a><span class="type-signature"> : <a href="module-ColorSpaces.html#~ColorSpaceImpl">module:ColorSpaces~ColorSpaceImpl</a></span> <span class="type-signature">(constant) </span></h3>
  28. <div class="description">
  29. <p>Implementation object for the Display-P3 color space.</p>
  30. </div>
  31. </div>
  32. <div class="member">
  33. <h3 class="name" id=".ExtendedSRGBColorSpace" translate="no">.<a href="#.ExtendedSRGBColorSpace">ExtendedSRGBColorSpace</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  34. <div class="description">
  35. <p>Extended-sRGB color space.</p>
  36. </div>
  37. </div>
  38. <div class="member">
  39. <h3 class="name" id=".ExtendedSRGBColorSpaceImpl" translate="no">.<a href="#.ExtendedSRGBColorSpaceImpl">ExtendedSRGBColorSpaceImpl</a><span class="type-signature"> : <a href="module-ColorSpaces.html#~ColorSpaceImpl">module:ColorSpaces~ColorSpaceImpl</a></span> <span class="type-signature">(constant) </span></h3>
  40. <div class="description">
  41. <p>Implementation object for the Extended-sRGB color space.</p>
  42. </div>
  43. </div>
  44. <div class="member">
  45. <h3 class="name" id=".LinearDisplayP3ColorSpace" translate="no">.<a href="#.LinearDisplayP3ColorSpace">LinearDisplayP3ColorSpace</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  46. <div class="description">
  47. <p>Display-P3-Linear color space.</p>
  48. </div>
  49. </div>
  50. <div class="member">
  51. <h3 class="name" id=".LinearDisplayP3ColorSpaceImpl" translate="no">.<a href="#.LinearDisplayP3ColorSpaceImpl">LinearDisplayP3ColorSpaceImpl</a><span class="type-signature"> : <a href="module-ColorSpaces.html#~ColorSpaceImpl">module:ColorSpaces~ColorSpaceImpl</a></span> <span class="type-signature">(constant) </span></h3>
  52. <div class="description">
  53. <p>Implementation object for the Display-P3-Linear color space.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <h3 class="name" id=".LinearRec2020ColorSpace" translate="no">.<a href="#.LinearRec2020ColorSpace">LinearRec2020ColorSpace</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  58. <div class="description">
  59. <p>Rec2020-Linear color space.</p>
  60. </div>
  61. </div>
  62. <div class="member">
  63. <h3 class="name" id=".LinearRec2020ColorSpaceImpl" translate="no">.<a href="#.LinearRec2020ColorSpaceImpl">LinearRec2020ColorSpaceImpl</a><span class="type-signature"> : <a href="module-ColorSpaces.html#~ColorSpaceImpl">module:ColorSpaces~ColorSpaceImpl</a></span> <span class="type-signature">(constant) </span></h3>
  64. <div class="description">
  65. <p>Implementation object for the Rec2020-Linear color space.</p>
  66. </div>
  67. </div>
  68. <h2 class="subsection-title">Type Definitions</h2>
  69. <div class="member">
  70. <h3 class="name" id="~ColorSpaceImpl" translate="no">.<a href="#~ColorSpaceImpl">ColorSpaceImpl</a> </h3>
  71. <div class="description">
  72. <p>An object holding the color space implementation.</p>
  73. </div>
  74. <h5 class="subsection-title">Properties:</h5>
  75. <table class="props">
  76. <thead>
  77. <tr>
  78. <th>Name</th>
  79. <th>Type</th>
  80. <th>Attributes</th>
  81. <th class="last">Description</th>
  82. </tr>
  83. </thead>
  84. <tbody>
  85. <tr>
  86. <td class="name"><code>primaries</code></td>
  87. <td class="type">
  88. <span class="param-type">Array.&lt;number></span>
  89. </td>
  90. <td class="attributes">
  91. </td>
  92. <td class="description last"><p>The primaries.</p></td>
  93. </tr>
  94. <tr>
  95. <td class="name"><code>whitePoint</code></td>
  96. <td class="type">
  97. <span class="param-type">Array.&lt;number></span>
  98. </td>
  99. <td class="attributes">
  100. </td>
  101. <td class="description last"><p>The white point.</p></td>
  102. </tr>
  103. <tr>
  104. <td class="name"><code>toXYZ</code></td>
  105. <td class="type">
  106. <span class="param-type"><a href="Matrix3.html">Matrix3</a></span>
  107. </td>
  108. <td class="attributes">
  109. </td>
  110. <td class="description last"><p>A color space conversion matrix, converting to CIE XYZ.</p></td>
  111. </tr>
  112. <tr>
  113. <td class="name"><code>fromXYZ</code></td>
  114. <td class="type">
  115. <span class="param-type"><a href="Matrix3.html">Matrix3</a></span>
  116. </td>
  117. <td class="attributes">
  118. </td>
  119. <td class="description last"><p>A color space conversion matrix, converting from CIE XYZ.</p></td>
  120. </tr>
  121. <tr>
  122. <td class="name"><code>luminanceCoefficients</code></td>
  123. <td class="type">
  124. <span class="param-type">Array.&lt;number></span>
  125. </td>
  126. <td class="attributes">
  127. </td>
  128. <td class="description last"><p>The luminance coefficients.</p></td>
  129. </tr>
  130. <tr>
  131. <td class="name"><code>workingColorSpaceConfig</code></td>
  132. <td class="type">
  133. <span class="param-type">Object</span>
  134. </td>
  135. <td class="attributes">
  136. &lt;optional><br>
  137. </td>
  138. <td class="description last"><p>The working color space config.</p></td>
  139. </tr>
  140. <tr>
  141. <td class="name"><code>outputColorSpaceConfig</code></td>
  142. <td class="type">
  143. <span class="param-type">Object</span>
  144. </td>
  145. <td class="attributes">
  146. &lt;optional><br>
  147. </td>
  148. <td class="description last"><p>The drawing buffer color space config.</p></td>
  149. </tr>
  150. </tbody>
  151. </table>
  152. </div>
  153. <h2 class="subsection-title">Source</h2>
  154. <p>
  155. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/math/ColorSpaces.js" target="_blank" rel="noopener" translate="no">examples/jsm/math/ColorSpaces.js</a>
  156. </p>
  157. </article>
  158. </section>
  159. <script src="../scripts/linenumber.js"></script>
  160. <script src="../scripts/page.js"></script>
  161. </body>
  162. </html>
粤ICP备19079148号