Class: Rectangle

Rectangle(x, y, width, height)

new Rectangle(x, y, width, height)

The rectangle class.
Parameters:
Name Type Description
x Number The x coordinate for the upper-left corner
y Number The y coordinate for the upper-left corner
width Number The width of the rectangle
height Number The height of the rectangle
Properties:
Name Type Description
x Number The x coordinate for the upper-left corner
y Number The y coordinate for the upper-left corner
width Number The width of the rectangle
height Number The height of the rectangle

Extends

  • PIXI.Rectangle

Methods

initialize()