API Documentation for: 0.8.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.

  • 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:126

Returns a clone of this Shadow instance.

Returns:

Shadow:

A clone of the current Shadow instance.

initialize

() deprecated protected

Defined in initialize:90

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

Returns a string representation of this object.

Returns:

String:

a string representation of the instance.

Properties

identity

Shadow final static

Defined in identity:105

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