#

API Documentation for: NEXT
Show: Inherited Protected Private Deprecated

# Graphics.Rect Class

Defined in: `Graphics.Rect:1836`
Module: EaselJS

Graphics command object. See rect and append for more information.

## Constructor

### `Graphics.Rect`

(

- `x`
- `y`
- `w`
- `h`

)

Defined in `Graphics.Rect:1836`

#### Parameters:

- `x` Number
- `y` Number
- `w` Number
- `h` Number

- Index
- Methods
- Properties

## Item Index

### Methods

- exec

### Properties

- h
- w
- x
- y

## Methods

### `exec`

(

- `ctx`

)

Defined in `exec:1861`

Execute the Graphics command in the provided Canvas context.

#### Parameters:

- `ctx` CanvasRenderingContext2D

  The canvas rendering context

## Properties

### `h`

Number

Defined in `h:1857`

### `w`

Number

Defined in `w:1853`

### `x`

Number

Defined in `x:1845`

### `y`

Number

Defined in `y:1849`