EaselJS

EaselJS  0.4.1

EaselJS > EaselJS > Shadow
Search:
 
Filters

Class Shadow

Encapsulates the properties required to define a shadow to apply to a DisplayObject via it's .shadow property.

Constructor

Shadow ( color , offsetX , offsetY , blur )
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.

Properties

blur - Number

The blur of the shadow. property blur
Default Value: 0

color - String

The color of the shadow. property color
Default Value: null

identity - static final Shadow

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

offsetX - Number

The x offset of the shadow. property offsetX
Default Value: 0

offsetY - Number

The y offset of the shadow. property offsetY
Default Value: 0

Methods

clone

Shadow clone ( )
Returns a clone of this Shadow instance.
Returns: Shadow
A clone of the current Shadow instance.

initialize

protected void initialize ( color , offsetX , offsetY , blur )
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.
Returns: void

toString

String toString ( )
Returns a string representation of this object.
Returns: String
a string representation of the instance.