PosterizeNode.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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">Node</span>, stepsNode : <span class="param-type">Node</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"><code>sourceNode</code></td>
  31. <td class="description last"><p>The input color.</p></td>
  32. </tr>
  33. <tr>
  34. <td class="name"><code>stepsNode</code></td>
  35. <td class="description last"><p>Controls the intensity of the posterization effect. A lower number results in a more blocky appearance.</p></td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. </div>
  41. <h2 class="subsection-title">Properties</h2>
  42. <div class="member">
  43. <h3 class="name" id="sourceNode" translate="no">.<a href="#sourceNode">sourceNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  44. <div class="description">
  45. <p>The input color.</p>
  46. </div>
  47. </div>
  48. <div class="member">
  49. <h3 class="name" id="stepsNode" translate="no">.<a href="#stepsNode">stepsNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  50. <div class="description">
  51. <p>Controls the intensity of the posterization effect. A lower number results in a more blocky appearance.</p>
  52. </div>
  53. </div>
  54. <h2 class="subsection-title">Source</h2>
  55. <p>
  56. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/PosterizeNode.js" target="_blank" rel="noopener" translate="no">src/nodes/display/PosterizeNode.js</a>
  57. </p>
  58. </article>
  59. </section>
  60. <script src="../scripts/linenumber.js"></script>
  61. <script src="../scripts/page.js"></script>
  62. </body>
  63. </html>
粤ICP备19079148号