Skip to content

textmode.synth.js / SynthSource / swirl

Method: swirl() ​

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

Swirl distortion around a center.

Parameters ​

ParameterTypeDescription
amount?SynthParameterValueSwirl strength (default: 4.0)
centerX?SynthParameterValueCenter X (default: 0.5)
centerY?SynthParameterValueCenter Y (default: 0.5)

Returns ​

this

Example ​