API Documentation for: 0.7.1
Show:

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.

Item Index

Properties

Methods

clone

() Shadow

Defined in clone:126

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:99

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:116

Returns a string representation of this object.

Returns:

String:

a string representation of the instance.

Properties

identity

Shadow final static

Defined in identity:59

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