Skip to content

textmode.synth.js / SynthSource / posterize

Method: posterize()

ts
posterize(bins?, gamma?): this;

Posterize colors to limited palette.

Parameters

ParameterTypeDescription
bins?SynthParameterValueNumber of color bins (default: 3.0)
gamma?SynthParameterValueGamma correction (default: 0.6)

Returns

this

Example