setCenterX()
Set the object's horizontal center.
xypad.setCenterX(x)
Parameters
xypad.setCenterX(x)
| Parameter | Type | Default | Description |
|---|---|---|---|
x |
int or float |
required | The new horizontal center, in pixels. |
Set the object's horizontal center.
xypad.setCenterX(x)
xypad.setCenterX(x)
| Parameter | Type | Default | Description |
|---|---|---|---|
x |
int or float |
required | The new horizontal center, in pixels. |