PosterizeNode.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>PosterizeNode - 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">PosterizeNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents a posterize effect which reduces the number of colors
  17. in an image, resulting in a more blocky and stylized appearance.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="PosterizeNode" translate="no">new <a href="#PosterizeNode">PosterizeNode</a><span class="signature">( sourceNode : <span class="param-type"><a href="Node.html">Node</a></span>, stepsNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new posterize node.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>sourceNode</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The input color.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>stepsNode</strong>
  40. </td>
  41. <td class="description last">
  42. <p>Controls the intensity of the posterization effect. A lower number results in a more blocky appearance.</p>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. <h2 class="subsection-title">Properties</h2>
  50. <div class="member">
  51. <h3 class="name" id="sourceNode" translate="no">.<a href="#sourceNode">sourceNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  52. <div class="description">
  53. <p>The input color.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <h3 class="name" id="stepsNode" translate="no">.<a href="#stepsNode">stepsNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  58. <div class="description">
  59. <p>Controls the intensity of the posterization effect. A lower number results in a more blocky appearance.</p>
  60. </div>
  61. </div>
  62. <h2 class="subsection-title">Source</h2>
  63. <p>
  64. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/PosterizeNode.js" translate="no" target="_blank" rel="noopener">src/nodes/display/PosterizeNode.js</a>
  65. </p>
  66. </article>
  67. </section>
  68. <script src="../scripts/linenumber.js"></script>
  69. <script src="../scripts/page.js"></script>
  70. </body>
  71. </html>
粤ICP备19079148号