Skip to content

textmode.synth.js / SynthSource / scale

Method: scale() ​

ts
scale(
   amount?, 
   xMult?, 
   yMult?, 
   offsetX?, 
   offsetY?): this;

Scale coordinates.

Parameters ​

ParameterTypeDescription
amount?SynthParameterValueScale amount (default: 1.5)
xMult?SynthParameterValueX axis multiplier (default: 1.0)
yMult?SynthParameterValueY axis multiplier (default: 1.0)
offsetX?SynthParameterValueX offset (default: 0.5)
offsetY?SynthParameterValueY offset (default: 0.5)

Returns ​

this

Example ​