Skip to content

textmode.synth.js / SynthSource / barrel

Method: barrel()

ts
barrel(
   amount?, 
   centerX?, 
   centerY?): this;

Barrel distortion (bulge outward).

Parameters

ParameterTypeDescription
amount?SynthParameterValueDistortion amount (default: 0.5)
centerX?SynthParameterValueCenter X (default: 0.5)
centerY?SynthParameterValueCenter Y (default: 0.5)

Returns

this

Example