Class: Rectangle

Rectangle

new Rectangle(x, y, width, height)

The rectangle class
NameTypeDescription
xnumberThe x coordinate for the upper-left corner
ynumberThe y coordinate for the upper-left corner
widthnumberThe width of the rectangle
heightnumberThe height of the rectangle

Extends

  • PIXI.Rectangle

Methods

initialize(x, y, width, height)

Initializes the rectangle object
NameTypeDescription
xnumberThe x coordinate for the upper-left corner
ynumberThe y coordinate for the upper-left corner
widthnumberThe width of the rectangle
heightnumberThe height of the rectangle