Skip to content

setTarget()

Aim the ramp at a new value, starting from where it is now.

linearramp.setTarget(targetValue)

You can also change how long the ramp takes. If the ramp was not running, this starts it.

Parameters

linearramp.setTarget(targetValue, delay=None)
Parameter Type Default Description
targetValue int or float required The new value to ramp toward.
delay int or float None A new length for the ramp, in milliseconds. If omitted, the current length is kept.