Skip to content

setValue()

Set the tracker's position within the pad.

xypad.setValue(x, y)

Positions outside the pad are clamped to its edges. Moves the tracker and calls the update function.

Parameters

xypad.setValue(x, y)
Parameter Type Default Description
x int or float required The new horizontal position within the pad, in pixels.
y int or float required The new vertical position within the pad, in pixels.