| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>PosterizeNode - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → <a href="TempNode.html">TempNode</a> → </p>
- <h1 translate="no">PosterizeNode</h1>
- <section>
- <header>
- <div class="class-description"><p>Represents a posterize effect which reduces the number of colors
- in an image, resulting in a more blocky and stylized appearance.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <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>
- <div class="method">
- <div class="description">
- <p>Constructs a new posterize node.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>sourceNode</code></td>
- <td class="description last"><p>The input color.</p></td>
- </tr>
- <tr>
- <td class="name"><code>stepsNode</code></td>
- <td class="description last"><p>Controls the intensity of the posterization effect. A lower number results in a more blocky appearance.</p></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="sourceNode" translate="no">.<a href="#sourceNode">sourceNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
- <div class="description">
- <p>The input color.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="stepsNode" translate="no">.<a href="#stepsNode">stepsNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
- <div class="description">
- <p>Controls the intensity of the posterization effect. A lower number results in a more blocky appearance.</p>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <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>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|