Skip to content

textmode.synth.js / SynthSource / scroll

Method: scroll()

ts
scroll(
   scrollX?, 
   scrollY?, 
   speedX?, 
   speedY?): this;

Scroll coordinates in both X and Y directions.

Parameters

ParameterTypeDescription
scrollX?SynthParameterValueX scroll amount (default: 0.5)
scrollY?SynthParameterValueY scroll amount (default: 0.5)
speedX?SynthParameterValueX scroll speed (default: 0.0)
speedY?SynthParameterValueY scroll speed (default: 0.0)

Returns

this

Example