setPosition()
Move the object so the top-left corner of its bounding box sits at the given point.
slider.setPosition(x, y)
Parameters
slider.setPosition(x, y)
| Parameter | Type | Default | Description |
|---|---|---|---|
x |
int or float |
required | The new horizontal position, in pixels. |
y |
int or float |
required | The new vertical position, in pixels. |