Class Shadow
Encapsulates the properties required to define a shadow to apply to a DisplayObject via it's .shadow property.
Defined in: Shadow.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Shadow(color, offsetX, offsetY, blur)
Constructs a new Shadow object.
|
Field Attributes | Field Name and Description |
---|---|
The blur of the shadow.
|
|
The color of the shadow.
|
|
<static> |
Shadow.identity
An identity shadow object (all properties are set to 0).
|
The x offset of the shadow.
|
|
The y offset of the shadow.
|
Method Attributes | Method Name and Description |
---|---|
<private> |
init(color, offsetX, offsetY, blur)
|
toString()
Returns a string representation of this object.
|
Class Detail
Shadow(color, offsetX, offsetY, blur)
Constructs a new Shadow object.
- Parameters:
- color
- The color of the shadow.
- offsetX
- The x offset of the shadow.
- offsetY
- The y offset of the shadow.
- blur
- The blur of the shadow.
Field Detail
blur
The blur of the shadow. *
color
The color of the shadow. *
<static>
Shadow.identity
An identity shadow object (all properties are set to 0). Read-only.
offsetX
The x offset of the shadow. *
offsetY
The y offset of the shadow. *
Method Detail
<private>
init(color, offsetX, offsetY, blur)
- Parameters:
- color
- offsetX
- offsetY
- blur
toString()
Returns a string representation of this object.