#

API Documentation for: NEXT
Show: Inherited Protected Private Deprecated

# Shadow Class

Defined in: `Shadow:41`
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:41`

#### Parameters:

- `color` String

  The color of the shadow. This can be any valid CSS color value.

- `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 deprecated
- toString

### Properties

- blur
- color
- identity static
- offsetX
- offsetY

## Methods

### `clone`

() Shadow

Defined in `clone:127`

Returns a clone of this Shadow instance.

#### Returns:

Shadow:

A clone of the current Shadow instance.

### `initialize`

() deprecated protected

Defined in `initialize:91`

REMOVED. Removed in favor of using `MySuperClass_constructor`. See extend and promote for details.

There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance.

### `toString`

() String

Defined in `toString:118`

Returns a string representation of this object.

#### Returns:

String:

a string representation of the instance.

## Properties

### `blur`

Number

Defined in `blur:82`

Default: 0

### `color`

String

Defined in `color:60`

The color of the shadow. This can be any valid CSS color value.

Default: null

### `identity`

Shadow final static

Defined in `identity:106`

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

### `offsetX`

Number

Defined in `offsetX:68`

Default: 0

### `offsetY`

Number

Defined in `offsetY:75`

Default: 0