textmode.synth.js / SynthPlugin
Variable: SynthPlugin
ts
const SynthPlugin: TextmodePlugin;The textmode.synth.js plugin to install.
Install this plugin to enable .synth() on TextmodeLayer instances.
Example
javascript
const t = textmode.create({
width: window.innerWidth,
height: window.innerHeight,
plugins: [SynthPlugin]
});
t.layers.base.synth(
noise(10)
.charMap('@#%*+=-:. ')
.charColor(osc(5, 0.1, 1.2).kaleid(4))
);
t.windowResized(() => {
t.resizeCanvas(window.innerWidth, window.innerHeight);
});