Skip to content

textmode.synth.js / SynthSource / luma

Method: luma()

ts
luma(threshold?, tolerance?): this;

Apply threshold based on luminance.

Parameters

ParameterTypeDescription
threshold?SynthParameterValueThreshold value (default: 0.5)
tolerance?SynthParameterValueTolerance range (default: 0.1)

Returns

this

Example