Class: Rectangle

Rectangle

new Rectangle (x, y, width, height)

The rectangle class.

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