posterize
posterize(
inputColor,bands):Node<"vec4">
Defined in: packages/nodes/src/retro/posterize.ts:25
Posterize color to create flat, comic-book style bands. This is semantically equivalent to quantize but with artist-friendly naming.
Parameters
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
The input color (vec4 with alpha)
Number of color bands (2-16 typical)
Returns
Section titled “Returns”Node <"vec4">
Posterized color
Examples
Section titled “Examples”// Create comic-book style with 4 bandsposterize(texture(tex, uv()), 4)// Subtle posterization with 8 bandsposterize(color, 8)// Dynamic posterization with uniformposterize(color, bandsUniform)