Skip to content

setDuration()

Change how long the ramp takes.

Parameters

Once an object linearramp has been created, you can use the following function:

linearramp.setDuration(delay)
Parameter Type Default Description
delay int or float required The new length for the ramp, in milliseconds.