Skip to content

textmode.synth.js / SynthSource / twirl

Method: twirl() ​

ts
twirl(
   amount?, 
   radius?, 
   centerX?, 
   centerY?): this;

Twirl distortion with radial falloff.

Parameters ​

ParameterTypeDescription
amount?SynthParameterValueTwirl strength (default: 2.0)
radius?SynthParameterValueEffect radius (default: 0.5)
centerX?SynthParameterValueCenter X (default: 0.5)
centerY?SynthParameterValueCenter Y (default: 0.5)

Returns ​

this

Example ​