Skip to content

textmode.synth.js / SynthSource / transform

Method: transform() ​

ts
transform(name, ...args): this;

Apply a registered transform by name with explicit arguments.

This is the typed escape hatch for dynamic extension code that does not want to augment the instance interface. It uses the same runtime lookup and chain-recording implementation as injected chain methods.

Parameters ​

ParameterTypeDescription
namestringPublic transform name (must be registered)
...argsSynthParameterValue[]Arguments resolved against the declared inputs

Returns ​

this

The SynthSource for chaining

Example ​

js
source.transform('duotone', [0.02, 0.04, 0.12], [1, 0.4, 0.1]);