API Documentation for: 1.0.0
Show:

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.

Item Index

Methods

Properties

Methods

clone

() Shadow

Defined in clone:113

Returns a clone of this Shadow instance.

Returns:

Shadow:

A clone of the current Shadow instance.

toString

() String

Defined in toString:104

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 readonly

Defined in identity:92

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