API Docs for: 0.9
Show:

Rectangle Class

Defined in: pixi/Rectangle.js:5
Module: PIXI

the Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its width and its height.

Constructor

Rectangle

(
  • x
  • y
  • width
  • height
)

Defined in pixi/Rectangle.js:5

Parameters:

  • x Number

    position of the rectangle

  • y Number

    position of the rectangle

  • width Number

    of the rectangle

  • height Number

    of the rectangle

Item Index

Methods

Properties

Methods

clone

()

Returns:

a copy of the rectangle

Properties

height

Number

Default: 0

width

Number

Default: 0

x

Number

Default: 0

y

Number

Default: 0