#

API Documentation for: NEXT
Show: Inherited Protected Private Deprecated

# Shadow Class

Defined in: `Shadow:39`
Module: EaselJS

This class encapsulates the properties required to define a shadow to apply to a DisplayObject via its `shadow` property.

#### Example

     myImage.shadow = new createjs.Shadow("#000000", 5, 5, 10);

## Constructor

### `Shadow`

(

- `color`
- `offsetX`
- `offsetY`
- `blur`

)

Defined in `Shadow:39`

#### Parameters:

- `color` String

  The color of the shadow.

- `offsetX` Number

  The x offset of the shadow in pixels.

- `offsetY` Number

  The y offset of the shadow in pixels.

- `blur` Number

  The size of the blurring effect.

- Index
- Methods
- Properties

## Item Index

### Methods

- clone
- initialize
- toString

### Properties

- identity static

## Methods

### `clone`

() Shadow

Defined in `clone:127`

Returns a clone of this Shadow instance.

#### Returns:

Shadow:

A clone of the current Shadow instance.

### `initialize`

(

- `color`
- `offsetX`
- `offsetY`
- `blur`

)
protected

Defined in `initialize:100`

Initialization method.

#### Parameters:

- `color` String

  The color of the shadow.

- `offsetX` Number

  The x offset of the shadow.

- `offsetY` Number

  The y offset of the shadow.

- `blur` Number

  The size of the blurring effect.

### `toString`

() String

Defined in `toString:117`

Returns a string representation of this object.

#### Returns:

String:

a string representation of the instance.

## Properties

### `identity`

Shadow final static

Defined in `identity:60`

An identity shadow object (all properties are set to 0).