Shadow Class
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
)
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.
Methods
clone
()
Shadow
Returns a clone of this Shadow instance.
Returns:
Shadow:
A clone of the current Shadow instance.
toString
()
String
Returns a string representation of this object.
Returns:
String:
a string representation of the instance.
Properties
color
String
The color of the shadow. This can be any valid CSS color value.
Default: null
identity
Shadow
final
static
readonly
An identity shadow object (all properties are set to 0).