Skip to content

getCenter()

Return the object's center point.

push.getCenter()

Returns

return centerX, centerY

Value Type Description
centerX int or float The horizontal position of the center, in pixels.
centerY int or float The vertical position of the center, in pixels.