Skip to content

getCenterX()

Return the object's horizontal center.

push.getCenterX()

Returns

return x

Value Type Description
x int or float The horizontal center, in pixels.