API Documentation for: 0.6.1
Show:

Shadow Class

Defined in: Shadow:34
Module: EaselJS

This class encapsulates the properties required to define a shadow to apply to a DisplayObject via it's shadow property.

Example

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

Constructor

Shadow

(
  • color
  • offsetX
  • offsetY
  • blur
)

Defined in Shadow:34

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

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

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

Returns a string representation of this object.

Returns:

String: a string representation of the instance.

Properties

identity

Shadow final static

Defined in identity:54

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